Scripting API: Access MTP devices
Jan Holthuis
jan at holmek.de
Fri May 1 17:23:40 UTC 2009
Hello!
Is it possible to access the collection of an MTP device? I couldn't
find it here: http://amarok.kde.org/wiki/Development/Script_API
I need this because I'd like to create a script similar to this python
application:
http://www.lastfm.de/group/Linux/forum/34522/_/515638
The app reads the playcount values of the mtp library and
scrobbles after comparing them with a database to avoid double-
scrobbling. Unfortunately, it's a GTK-app and I have to shut down
amarok to scrobble tracks, because amarok blocks libmtp-
access, so I thought it would be nice to have this implemented
directly in amarok (scrobble as soon as the mtp player is
attached).
Can this be archieved with a script? I'm especially unsure, if It's
possible to get the username and password from the Last.FM
plugin, because it could be quite a risk to permit scripts to read
these values.
Or is there a method like Amarok.Script.LastFM.Scrobble(artist,
track, album) ?
Thanks in advance,
Jan Holthuis
More information about the Amarok
mailing list