Update scrape-internet-radio-manual.sh

This commit is contained in:
hossein s. borhani 2022-11-29 01:02:48 +03:30 committed by GitHub
parent 13b5ef8fa7
commit 6b7152fcfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,8 +16,8 @@ for i in "" page{2..16} ; do for j in $(cat links2.txt) ; do curl -s https://www
# convert links to m3u stream files
for i in $(cat links2.txt) ; do sed "s/^/#EXTINF:-1\n/" $i.txt | sed '1s/^/#EXTM3U\n/' > $i.m3u ; done
# replace %20 in filenames with space
for i in *.m3u ; do mv -- "$i" "$(printf '%s\n' "$i" | sed 's/%20/ /')" ; done
# replace %20 in filenames with underline
for i in *.m3u ; do mv -- "$i" "$(printf '%s\n' "$i" | sed 's/%20/_/')" ; done
# move stream to git folder
mv *.m3u c:/git/m3u-radio-music-playlists/internet-radio/