Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A simple utility to convert the m3u8 file generated by smloadr to an m3u file for MPD
awk '/^#/ {sub(/#.*/,"");getline;}1' "$1" > tmpfile
sed -i 's/..\///' tmpfile
mv tmpfile ~/.config/mpd/playlists/$(echo "$1" | sed 's/ //g' | sed 's/m3u8/m3u/')
rm "$1"
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.