Registered Member
|
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 |
Registered Member
|
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 |
Registered Member
|
Thanks a lot, it works
I have to play some games with bash expansion and arrays, but at the end I think it's working, thanks. |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]