Notices


Reply
Thread Tools
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#1
I've made a script which can be used for fixing WPL playlists (Windows Media Player uses them) to work with Maemo's media player (or other Linux media players). What it does is find and replace all "\" (backslashes), which Windows use with "/" (normal slashes), which Linux uses. It is enough as playlists entries have relative path ("../folder/music.mp3") and not a definite path.

Code:
#!/bin/sh
echo Fixing WPLs...
sed 's/\\/\//g' -i /home/user/MyDocs/.sounds/Playlists/*.wpl
echo Playlists are now unixificated.
Just replace "/home/user/MyDocs/.sounds/Playlists/*.wpl" with folder where you keep your playlists. You get the picture.

Then "chmod +x script.sh" to make it executable. Now you can start it from Terminal or shortcut.

Last edited by rooted; 2010-03-07 at 17:28.
 

The Following User Says Thank You to rooted For This Useful Post:
Posts: 1 | Thanked: 0 times | Joined on May 2010
#2
hi rooted,

Thanks for the script. This is just the 'life saver' I've been looking for. I know nothing about scripts etc, so please, in laymans terms, what file name do I save the script as, and what do I need to type into xterminal to get it to work, or is there a gui way of doing it?

I'm using MediaMonkey, it sync's fine with my N900 but just like WMP playlists are stored with "\" and not "/". My playlists I save on the SD card under "Playlists/".

Thanks for looking and hope you can help an unfortunate long time Windows user and newbie Linux user .

Regards,
Kev.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 16:33.