Scripting API: Access MTP devices

Ian Monroe ian.monroe at gmail.com
Fri May 1 21:54:43 UTC 2009


On Fri, May 1, 2009 at 12:23 PM, Jan Holthuis <jan at holmek.de> wrote:
> 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) ?

Its not possible to do this with a script. But its a feature Amarok
itself should have. Alejandro is doing a GSoC project this summer
where he will be dotting the i's on such media device related
features.

Ian



More information about the Amarok mailing list