Registered Member
|
Hey there,
I'm new to Amarok2 development and am trying to adjust a couple of scripts that have been utilizing Amarok1 so far. While I definitely plan to learn QtScript for internal scripts, there are some that query amarok externally, e.g. a recording software. To check if I am recording duplicates, I was querying the Amarok collection via the DCOP interface. I haven't found any possible solution yet to do this via DBus, as the MPRIS API does not seem to support this and I haven't found anything else during my research. Is there a way to achieve this or do I have to use the Amarok DB directly (and I am happy about any hint how..). Thanks for you help |
Registered Member
|
Have a look at qdbus, this command comes with qt4 and behaves similarly to the dcop command.
For example, qdbus org.kde.amarok /TrackList will list track information calls. (You would then use 'qdbus org.kde.amarok /TrackList GetMetadata 2' to get metadata for track 3 in your tracklist) |
Registered Member
|
Currently you cannot query the collection database via dbus, however you can query it in scripts.
I suggest opening a wish request at http://bugs.kde.org requesting collection querying via dbus.
Amarok Developer
|
Registered Member
|
SVN commit 929814 by mkossick:
added a D-Bus interface to query Amarok's collections. It allows the same queries as in the collection browser. No services from the internet browser can be queried yet. The queries have to be passed to Amarok as XML. The XML format isn't documented anywhere yet except in the code, but it's the same that Amarok uses to store dynamic playlists on disk. Caveat: i'm not sure if the queryResult signal is actually emitted yet. at least nothing is shown by qdbusviewer. can somebody please whip up a small script to test it?
Amarok Developer
|
Registered Member
|
I am wanting to get the collection support that 1.4 had with dcop from dbus for use with conky. Where is the documentation on requesting collection information through dbus.
|
Registered users: Bing [Bot], gfielding, Google [Bot], markhm, Sogou [Bot], Yahoo [Bot]