Created
January 23, 2016 00:43
-
-
Save yrps/d529c93de56dcf07b2b6 to your computer and use it in GitHub Desktop.
m3u8 to m3u
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
#!/bin/sh | |
# convert all m3u8 playlists (UTF-8 encoding) in current dir to m3u (ASCII) | |
# required for compatibility with some media players | |
for pl in *.m3u8 | |
do iconv -f UTF-8 -t ASCII//TRANSLIT "$pl" > "${pl%\.m3u8}.m3u" | |
echo "converted $pl" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where to paste this script & how to run it