Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Convert SMplayer(Linux)'s playlist to COWON M2 media player's playlist.
#!/usr/bin/zsh
playlist_file="$1"
shift
perl -p -e 's:/:\\:g;' -e 'print "\\" if m/^[^\s#]/;' "$playlist_file" >| ${playlist_file:s/-utf8.m3u/.m3u}
mv -v "$playlist_file" ~/local/cowon-m2/playlists/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.