Wikia

Music Player Daemon Community Wiki

Watchlist Recent changes

Hack:MusicMagicMixer

To use mpd with Predixis MusicMagicMixer:

MusicMagic needs a command line program to call, so a script similar to m3uhandler is needed... However, clicking on a single mp3 sends the handler an mp3 filename as opposed to an m3u... And the m3u/mp3 generated has the complete path, which mpc doesn't like... so we strip it.

       #!/bin/bash
       ## configure this for your MPD music dir
       musicdir='\/your/music/file/homedir\/';
       ## clear the current list (optional)
       mpc clear;
       case $1 in
          *.mp3 ) echo $1 | sed -e "s/$musicdir//" | mpc add ;;
          *.m3u ) cat $1 | grep $musicdir | sed -e "s/$musicdir//" | mpc add ;;
         ## handle other file extensions (ogg, etc) just in case you need it...
          *) echo $1 | sed -e "s/$musicdir//" | mpc add ;;
       esac
       #play the music (also optional)
       mpc play;

Save this as musichandler (eg), chmod +x it, and enter it as the command line program for MusicMagic to use under Configuration Options to play music

Pages on Music Player Daemon Community Wiki

Add a Page
543pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
114photos on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki