Created
February 7, 2020 20:53
-
-
Save haylinmoore/678de578936dc85cc5de4fae95cda7d0 to your computer and use it in GitHub Desktop.
A simple utility to convert the m3u8 file generated by smloadr to an m3u file for MPD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat convertM3u8.sh | |
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