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

Adding several tracks with dcop

Tags: None
(comma "," separated)
Jellby
Registered Member
Posts
4
Karma
0

Adding several tracks with dcop

Fri Jan 11, 2008 9:45 am
Hi all,

I'm using a bash script to add tracks to Amarok's playlist, righ't now I'm using "dcop amarok playlist addMedia filename" in a loop over all the files I want to add, but I'd like to use addMediaList instead. The problem is, how do I generate a KURL::List and how do I pass it to the command line (or inside a bash script)?

Thanks
ration
Registered Member
Posts
1
Karma
0

Re: Adding several tracks with dcop

Wed Apr 02, 2008 6:52 am
Hi,

(early response..)

I had some trouble to figure out the format as well.

E.g.
dcop amarok playlist addMediaList [ "/tmp/song1.mp3" "/tmp/song2.ogg" ]

The whitespaces there are meaningful. I actually wanted to queue the songs but this wasn't possible. I made a patch so that it can be done, for bug http://bugs.kde.org/show_bug.cgi?id=136465
Jellby
Registered Member
Posts
4
Karma
0

Re: Adding several tracks with dcop

Wed Apr 02, 2008 9:08 am
Thanks a lot, it works :smilie:

I have to play some games with bash expansion and arrays, but at the end I think it's working, thanks.


Bookmarks



Who is online

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