LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Changing song using amarok and DCOP (https://www.linuxquestions.org/questions/linux-software-2/changing-song-using-amarok-and-dcop-546291/)

Scotteh 04-15-2007 03:37 PM

Changing song using amarok and DCOP
 
Hey all,

I'm using fvwm, and I'm wanting to create a menu that will list all my songs and switch to that song. I'll be able to figure out the former, but I didn't see a function in dcop to switch to a certain song. The only thing I was was dcop amarok playlist playByIndex(int). The index refers to the position in playlist. I don't think that's good enough because I find amarok sorting pretty messed up (it appears to sort artist > album > other stuff > title), so I'm wondering if there's a better method.

Any suggestions?

{BBI}Nexus{BBI} 04-15-2007 05:34 PM

You can configure the sorting to another order in Amarok.

Scotteh 04-16-2007 07:31 AM

Oh yeah? Does that involve code hacking? I don't have to time to do that right now.

{BBI}Nexus{BBI} 04-16-2007 11:05 PM

No code hacking, just use the group by button/icon in the top left corner under the word Engage.

Scotteh 04-18-2007 08:15 AM

Hmm... The only thing I see under the Engage menu is an icon to show/hide different sidebar items. Beside that are buttons to clear the playlist, save the playlist, undo, redo, and filter the playlist

Scotteh 04-19-2007 08:47 AM

For those who will read this thread looking for an answer, the command:
Code:

dcop amarok playlist playMedia(KURL)
will do what I was wanting. If the song exists in the current playlist, it plays it. If it doesn't exist, it adds it to the current playlist and then plays it. The documentation for this command misled me.


All times are GMT -5. The time now is 04:28 AM.