Zeya: Support for using m3u playlists
The m3u file format is used by a number of music playing software to store and read playlist data. For example:
#EXTINF:225,Pearl Jam - Do the Evolution
/home/r00t/Music/Pearl Jam/06-Live On Two Legs (1998)/13-Do the Evolution.mp3
#EXTINF:455,Yanni - Keys To Imagination
/home/r00t/Music/Yanni/Keys To Imagination.mp3
#EXTINF:337,Yanni - For All Seasons
/home/r00t/Music/Yanni/Ethnicity/12 02 - For All Seasons.mp3
#EXTINF:223,Yanni - The Promise
/home/r00t/Music/Yanni/Ethnicity/12 03 - The Promise.mp3
#EXTINF:336,Yanni - Rainmaker
/home/r00t/Music/Yanni/Ethnicity/12 04 - Rainmaker.mp3
Its a pretty simple format to extract the data from and so during a rather unproductive evening, I added the support to serve music with Zeya from your existing m3u files. The code is in the repository now and can be git cloned.
Here’s how you can try the new option:
$ zeya.py --backend=playlist --path=/path/to/your/m3u/file
In Zeya terminology, we call it a new backend.
A backend is anything- disk, Rhythmbox library, m3u playlist and Zeya reads music files from. Implementing support for a new backend of your choice is insanely easy. Just look up m3u.py file and you should be able to understand what is going on.