[mythtv-users] Re: [PATCH] Mythweb -- Mythmusic playlist functionality AND Request for SQL help

Christopher Flynn flynnguy at gmail.com
Fri Oct 29 02:30:00 UTC 2004

Also as an aside, I took a look at the resulting m3u file (which comes
down as a php file but that's ok I guess) and figured an easy way to
make a streamable playlist for all your music. Assuming you have a
symlink or something to your music folder at /var/www/mythweb/music
you can do:
find /var/www/mythweb/music/ | grep mp3 > playlist.m3u
sed -e "s/\/var\/www/http:\/\/localhost/g" playlist.m3u > playlisttemp.m3u
sed -e "s/ /%20/g" playlisttemp.m3u > playlist.m3u

The second to last line replaces /var/www with http://localhost and
you may need to change them depending on your setup. The last line
changes the spaces to %20

You must be the change you wish to see in the world. - Gandhi

More information about the mythtv-users mailing list