From b4ba7cf2459d407d7dc7f1b15d30b2ef6d3a9f54 Mon Sep 17 00:00:00 2001 From: "U-DESKTOP-3VIS1T9\\junguler" Date: Wed, 29 Mar 2023 00:33:23 +0330 Subject: [PATCH] add the missing visual indicator to script --- stuff/scrape-online_radio.eu-manual.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stuff/scrape-online_radio.eu-manual.sh b/stuff/scrape-online_radio.eu-manual.sh index 8e359e1ea..39fa4035f 100755 --- a/stuff/scrape-online_radio.eu-manual.sh +++ b/stuff/scrape-online_radio.eu-manual.sh @@ -16,7 +16,7 @@ for i in A-*.txt ; do cat $i | awk '!seen[$0]++' > A$i ; echo -e $i ; done # scrape the streams #for i in AA-*.txt ; do for j in $(cat $i) ; do curl -s https://online-radio.eu/radio/$j | grep "url\":" | head -n 1 | awk -F '"' '{print $4}' | grep -v "object" | sed 's/\;//g' | sed '/^$/d' >> A$i ; echo -e "$i - $j" ; done ; done -for i in AA-*.txt ; do for j in $(cat $i) ; do curl -s https://online-radio.eu/export/winamp/$j | grep "Title\|File" | sed 's/File1\=//g' | sed 's/Title1\=/#EXTINF:-1 , /g' | sed 's/\;//g' >> A$i ; done ; done +for i in AA-*.txt ; do for j in $(cat $i) ; do curl -s https://online-radio.eu/export/winamp/$j | grep "Title\|File" | sed 's/File1\=//g' | sed 's/Title1\=/#EXTINF:-1 , /g' | sed 's/\;//g' >> A$i ; echo -e "$j - $i" ; done ; done # convert links to m3u streams for i in AAA-*.txt ; do sed "s/^/#EXTINF:-1\n/" $i | sed '1s/^/#EXTM3U\n/' > $i.m3u ; done