DynaMPD

DynaMPD allows you to get a dynamic playlist with MPD: it adds to your current playlist some tracks related to what you are currently listenning to. The similar tracks request is done using the Last.fm API (no registration required).

Dependencies

Usage

% ./dynampd.py --help
Usage: dynampd.py [options]

Options:
  -h, --help            show this help message and exit
  -a HOST, --host=HOST  MPD host
  -n PASSWORD, --password=PASSWORD
                        MPD password
  -p PORT, --port=PORT  MPD port
  -q, --quiet           Quiet mode

All parameters are optional: if MPD is running on localhost:6600 without password, you just have to execute the script.

Example

% ./dynampd.py
:: Search similar track [Yuki Kajiura - To Find Your Flower]
   [LastFM] request: track.getsimilar | url: http://ws.audioscrobbler.com/2.0/?api_key=b25b959554ed76058ac220b7b2e0a026&track=To+Find+Your+Flower&method=track.getsimilar&artist=Yuki+Kajiura
   [LastFM] request: artist.getsimilar | url: http://ws.audioscrobbler.com/2.0/?api_key=b25b959554ed76058ac220b7b2e0a026&method=artist.getsimilar&artist=Yuki+Kajiura
   [LastFM] request: artist.getTopTracks | url: http://ws.audioscrobbler.com/2.0/?api_key=b25b959554ed76058ac220b7b2e0a026&method=artist.getTopTracks&artist=Kalafina
    --> Kalafina/2009 - Seventh Heaven/Kalafina - 02 - Seventh Heaven - oblivious.mp3
   [LastFM] request: artist.getTopTracks | url: http://ws.audioscrobbler.com/2.0/?api_key=b25b959554ed76058ac220b7b2e0a026&method=artist.getTopTracks&artist=%E5%B2%A9%E5%B4%8E%E7%90%A2
    --> Unsorted_Music/Soundtracks/Gurren Lagann/天元突破グレンラガン ベストサウンド Soundtrack Disc/天元突破グレンラガン ベストサウンド Soundtrack Disc - 07 - Nikopol.mp3
   [LastFM] request: artist.getTopTracks | url: http://ws.audioscrobbler.com/2.0/?api_key=b25b959554ed76058ac220b7b2e0a026&method=artist.getTopTracks&artist=Makino+Yui
    --> Soundtracks/NHK ni Youkoso! OST (Sunny Side ni Youkoso)/NHK ni Youkoso! OST (Sunny Side ni Youkoso) - 23 - Modokashii Sekai no Ue de -piano ver.-.mp3

:: Search similar track [Kalafina - oblivious]
   [LastFM] request: track.getsimilar | url: http://ws.audioscrobbler.com/2.0/?api_key=b25b959554ed76058ac220b7b2e0a026&track=oblivious&method=track.getsimilar&artist=Kalafina
    --> Kalafina/2009 - Seventh Heaven/Kalafina - 06 - Seventh Heaven - ARIA.mp3
    --> Kalafina/2009 - Seventh Heaven/Kalafina - 12 - Seventh Heaven - sprinter.mp3
    --> Unsorted_Music/Soundtracks/Phantom ~Requiem for the Phantom~/Vol. 1/32 - KARMA (TV edit).mp3

Note that you will have to wait at least 20% of the current song being played before you get something.

Contact developers

The best way to contact us is to use IRC: #/dev/null@yozora-irc.net (ask for ubitux or Amak).

License

If you don't like us, feel free to do what the fuck you want to with dynaMPD since it's under WTFPL license.

TODO ideas