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

DCOP and the current playlist

Tags: None
(comma "," separated)
alkaline
Registered Member
Posts
2
Karma
0

DCOP and the current playlist

Thu May 25, 2006 12:17 am
Is there any way of getting the current playlist from amarok using DCOP?
I have had a good search of the 1.3.9 interface, but the only way i can see is to save the current list and parse it. This will be slow and writing to disk repeatedly is not ideal.

I know it is possible to get the playlist if I was writing a python script, but i have a standalone C++ app that needs to read the current playlist.

Cheers
Bob

http://airlcd.sourceforge.net/
User avatar
marcel
Registered Member
Posts
595
Karma
0
OS

Re: DCOP and the current playlist

Thu May 25, 2006 8:52 am
You could save it to /dev/shm, thus it just stays in memory.
I wonder if you can make saveM3u to output to STDOUT instead of saving to a file somehow...
User avatar
eean
KDE Developer
Posts
1016
Karma
0
OS

Re: DCOP and the current playlist

Sat Jun 03, 2006 9:00 am
Or perhaps a signal whenever the playlist changes?


Amarok Developer
alkaline
Registered Member
Posts
2
Karma
0

Re: DCOP and the current playlist

Wed Jun 14, 2006 9:08 pm
Thanks for your help.
I decided to go with just using the save current playlist DCOP command and reading in the XML file.

Cheers
Bob

http://airlcd.sourceforge.net/
imported-patpi
Registered Member
Posts
31
Karma
0

Re: DCOP and the current playlist

Wed Jun 14, 2006 10:26 pm

You should put this on wiki site of amarok...  :smilie:


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]