banshee:我如何通过 DBus 设置 Banshee 上特定曲目的评级?
我想通过 DBus 接口设置 Banshee 上特定曲目(即不仅仅是当前正在播放的曲目)的“评级”?
I'd like to set the 'rating' of a specific track (i.e. not only the one currently playing) on Banshee through the DBus interface?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Banshee 不通过 DBus 公开评级功能。
您可以使用 d-feet[1] 等应用程序快速查看它公开的所有功能。确保您感兴趣的应用程序实例(如本例中的 Banshee)正在运行。
已经有一个错误报告请求将评级功能[2]添加到 DBus 接口。您可能想订阅它。
Banshee does not expose rating functions via DBus.
You can quickly view all functions that it exposes, using applications like d-feet[1]. Make sure that an instance of the application you are interested in (like Banshee in this case) is running.
There is a bug report already requesting to add rating functionality[2] to DBus interface. You might want to subscribe to it.
自去年以来,Banshee 确实支持通过命令行进行评级。
有关更多选项,请参阅错误报告:
将项目评级添加到 DBus 接口
Banshee does support rating via commandline since last year.
See the bug report for more options:
Add item rating to DBus interface
遗憾的是,开发人员尚未实现 GET 方法,因此没有通用的方法来执行“对当前曲目 1 星向上/向下评级”命令,比特定曲目要少得多。
有人写过提供此功能的脚本吗?
然而,我还没有找到任何通过命令行修改 D-Bus 属性的解决方案。
最后,这是我对当前播放的曲目进行评分的解决方法。
选项:
到目前为止,Banshee 不会提供特定轨道的操作数据,这是我最好的选择。
Sadly the developer have not implemented a GET method, so there is no common way to execute "rate current track 1 star up/down"-command, much less than a specific track.
Does anyone has written a script which provide this feature?
Yet, I haven't found any solution to modify the D-Bus Property via command line.
Finally here is my Workaround for rate the current played Track.
Options:
As far Banshee will not provide manipulating data of a specific Track this is my best bet.