Convert many Shoutcast .pls / Icecast .xspf to one .m3u

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
stu90

Convert many Shoutcast .pls / Icecast .xspf to one .m3u

#1 Post by stu90 »

Here is a script to convert many individual Shoutcast .pls stream files into a single .pls stream playlist for MOC (music on console).

To get the Shoutcast stream .pls files go to http://www.shoutcast.com/radio/metal and search for some music you like - once you found some stations right mouse click on the station link and save to download folder - you can do this for a whole bunch of stations, you dont need to rename the individual .pls stream files as the script will take care of that.

Image
run script > select option 1 > type directory path containing shoutcast .pls files > this will generate a single .pls file which you point MOC to > all the individual .pls files will be moved to /root/moc-stuff/pls-dump and be renamed with the stations name - possible to be of use to some other application such mplayer etc.
Attachments
mocbm.gz
remove fake .gz and make the script executable
(2.39 KiB) Downloaded 363 times
Last edited by stu90 on Sun 13 May 2012, 13:43, edited 2 times in total.

stu90

version 0.2

#2 Post by stu90 »

update to version 0.2

Image

fixed some bugs

Added option to change .pls playlist file and .pls dump Dir so different collections and playlists can be created.

Added icecast .xspf stream files support - much like with the .pls files on shoutcast browse http://dir.xiph.org/index.php and download the .xspf file for the stations - Option 1 > stations will be added to the .pls playlist and the .xspf files will be converted to .pls files renamed and added to the dump dir.
Attachments
mocbm.gz
remove fake .gz extension and make script executable - Right click > properties > tick 3x Exec boxes.
(4.34 KiB) Downloaded 345 times

stu90

#3 Post by stu90 »

version 0.4

Image

Re written most of mocbm script
changed the playlist file format from .pls to .m3u as this file type is much easier to edit after a playlist has been created.

Dump files are still in .pls format.

Added some error checking if no .pls or .xspf files are found - removed manual add, script defaults playlist, dump dir, search dir, are at the top of the script you can change these to whatever you want then just click enter to use defaults and quickly run through script or pick other playlist, dump dir, search dir as you go.
Attachments
mocbm.gz
remove fake .gz extension and make script executable - Right click > properties > tick 3x Exec boxes.
(4.18 KiB) Downloaded 408 times

Post Reply