#!/bin/sh # # mpdpl2html - MPD playlist to HTML # by pfish - 2010 # Version 0.1 # License: GPL 2 # # Requirements: # mpd # mpc # sed # #USER=`whoami` STATS=`mpc stats | sed 's/$/\
/'` PLAYLIST=`mpc playlist | sed 's/$/\
/'` VERSION=`mpc version` FILE="mpdplaylist.html" DATE=`date -R` echo " MPD playlist of $USER

MPD playlist of $USER


Statistics:

$VERSION

$STATS

Playlist:

$PLAYLIST
Generated with mpdpl2html by pfish - $DATE " > $FILE