Description: A script that emulates a MPD (Music Player Daemon - http://www.musicpd.org/ ) by using Amarok as the actual player. It translates the mpd protocol into dcop calls for amarok and thus allow you to use mpd frontends to controll amarok over a network.
The script is listening on port 6601. Change to config vars on top of main.py if you want.Last changelog:
Hi.
Nice Idea. But I get a "error: ACK unknown command" everytime I try to connect (with mpc and gmpc).
The other clients I testet (sonata, xfce4-mpc und conky) don't work and don't tell me why.
Greetings,
Peter.
I think this problem is a result of shlex (used by mpdemu) not being able to parse unicode strings properly.
Does mpdemu have a website? or a subversion repository or anything where we can get the latest code?
Indeed, the problem is with shlex not handling unicode strings.
Quick fix:
Change line 393 of main.py to:
com = "c_%s" %rargs[0].replace('\x00','').lower()
And it should work.
Hi,
I was able to install this, and run it in amarok (after I edited where the music root was in the script). I then connected to it with a mpd client and was able to see songs, but I wasn't able to add them, play them, etc. likewise I couldn't get a stream to play.
Is there something I am needing to install that I'm missing?
The problem seems that most clients think that a set of commands is implemented that acutally arn't. There is a command to list all available commands but client uses it :)
Another problem is, that some client are very rigorous about the output. gmpc for example runs, but the connections dies from time to time but i have no idea why. Some clients even segfault :)
I will publish a new version in the next days that will feature a config dialog and will work with more clients.
That's a nice project. It's just the other part to my client: AmarokMPC (http://kde-apps.org/content/show.php/AmarokMPC?content=51577).
Having this it should be possible to synchronise two Amarok instances just by using the mpd server and client. Maybe somebody wants to try this out and tell us if it worked.
In theory it should work.
I'm still working on getting more clients working as they should and some parts like file selection are not even implemented yet. It's 0.1 tech preview ;)
Ratings & Comments
8 Comments
nice idea, but only a very few commands work.
Hi. Nice Idea. But I get a "error: ACK unknown command" everytime I try to connect (with mpc and gmpc). The other clients I testet (sonata, xfce4-mpc und conky) don't work and don't tell me why. Greetings, Peter.
I think this problem is a result of shlex (used by mpdemu) not being able to parse unicode strings properly. Does mpdemu have a website? or a subversion repository or anything where we can get the latest code?
Indeed, the problem is with shlex not handling unicode strings. Quick fix: Change line 393 of main.py to: com = "c_%s" %rargs[0].replace('\x00','').lower() And it should work.
Hi, I was able to install this, and run it in amarok (after I edited where the music root was in the script). I then connected to it with a mpd client and was able to see songs, but I wasn't able to add them, play them, etc. likewise I couldn't get a stream to play. Is there something I am needing to install that I'm missing?
The problem seems that most clients think that a set of commands is implemented that acutally arn't. There is a command to list all available commands but client uses it :) Another problem is, that some client are very rigorous about the output. gmpc for example runs, but the connections dies from time to time but i have no idea why. Some clients even segfault :) I will publish a new version in the next days that will feature a config dialog and will work with more clients.
That's a nice project. It's just the other part to my client: AmarokMPC (http://kde-apps.org/content/show.php/AmarokMPC?content=51577). Having this it should be possible to synchronise two Amarok instances just by using the mpd server and client. Maybe somebody wants to try this out and tell us if it worked.
In theory it should work. I'm still working on getting more clients working as they should and some parts like file selection are not even implemented yet. It's 0.1 tech preview ;)