This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Amarok 2, d-bus and Last.FM

Tags: None
(comma "," separated)
User avatar
Jeremiah Summers
Registered Member
Posts
9
Karma
0
OS

Amarok 2, d-bus and Last.FM

Mon Sep 08, 2008 4:13 pm
I've been messing around with d-bus and amarok 2 lately. While I've found I can control Amarok pretty well with most of the d-bus commands I haven't been able to find anything to control "skip" in last.fm with the excetption of using Prev,Next then Play to reload last.fm

example:
dbus-send --type=method_call --dest=org.kde.amarok /Player org.freedesktop.MediaPlayer.Prev;dbus-send --type=method_call --dest=org.kde.amarok /Player org.freedesktop.MediaPlayer.Next;dbus-send --type=method_call --dest=org.kde.amarok /Player org.freedesktop.MediaPlayer.Play

Pretty long and crazy command just to skip a song in last.fm... Is there a better way that I'm missing here? If not is it planned for the future?

Last edited by Anonymous on Mon Sep 08, 2008 4:27 pm, edited 1 time in total.
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: Amarok 2, d-bus and Last.FM

Mon Sep 08, 2008 8:51 pm
Well, the dbus interface implements the MPRIS standard. No less, no more.

We don't plan to add much more to it. For complex tasks people are supposed to use Amarok 2's QtScript interface, which is a lot more extensive.


--
Mark Kretschmann - Amarok Developer
User avatar
Jeremiah Summers
Registered Member
Posts
9
Karma
0
OS

Re: Amarok 2, d-bus and Last.FM

Wed Sep 10, 2008 3:25 am
That's a bummer. I would expect more then that, being scripting seems to be internal Amarok functions and not outside functions. I wonder what other players will allow me to have better control. All I want to do is write a decent Plasmoid. Guess I'm looking at the wrong player then. Thanks anyways.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]