mpdemu
Amarok 1.x Scripts
Score 50%
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:

9 years ago

- First preview release

thoughtcrime

8 years ago

nice idea, but only a very few commands work.

Report

Kdepeter

9 years ago

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.

Report

kinection

9 years ago

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?

Report

daroou

9 years ago

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.

Report

hacim

9 years ago

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?

Report

poelzi

9 years ago

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.

Report

chrisKA

9 years ago

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.

Report

poelzi

9 years ago

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 ;)

Report

9 years ago

- First preview release

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.1
updated Oct 24 2007
added Oct 24 2007
downloads today
0
page views today 0