XMMS to iRiver playlist converter
A script to convert XMMS playlists to a format useable on the iRiver iHP Series.
Mount your iRiver and use XMMS to make a playlist from the files on it.
Save that playlist, then run this script to convert your saved playlist to a iRiver-friendly format.
You can then delete the old playlist, or not. Your choice.
To use, download, make executable, place in your path and use as follows:
conv_m3u --options [m3u_file] [new_m3u_file]
Options:
-h, --help You're looking at it.
-m, --mount Define base mount point to be stripped (e.g. /mnt/device)
(default is '/mnt/iriv', so if that's where you had your iRiver
when you made your playlist, you don't need to use this option)
-v, --verbose Print new list to STDOUT (as well as to [new_m3u_file])
(default is false)
Examples:
Define the directory to strip as "/mnt/player" and make a playlist called "my_iriver_playlist.m3u"
conv_m3u -vm /mnt/player my_xmms_playlist.m3u my_iriver_playlist.m3u
Use the default directort (/mnt/iriv) and make a playlist called "my_new_ihp_playlist.m3u"
conv_m3u -v an_xmms_playlist.m3u my_new_ihp_playlist.m3u
(If you want to change the default directory so you don't have to use the -m option every time, open the script in a text editor and change the line that reads "mount_point = '/mnt/iriv/'" to reflect your normal mount point.)
No guarantees -- use at own risk.
conv_m3u.rb v0.1
(Right-click and "Save target as" if the link displays the script in your browser)
You can address any questions, suggestions, bugs, or improvements to:
info@newconformist.org