From 027b4c1f4674ea60caa9306686a2cd09576d1a69 Mon Sep 17 00:00:00 2001 From: "U-DESKTOP-3VIS1T9\\junguler" Date: Mon, 28 Aug 2023 18:19:30 +0330 Subject: [PATCH] or dont, who knew --- stuff/everything-factory.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stuff/everything-factory.sh b/stuff/everything-factory.sh index 797c73585..a971cc4da 100755 --- a/stuff/everything-factory.sh +++ b/stuff/everything-factory.sh @@ -9,7 +9,8 @@ rm everything-full.m3u everything-lite.m3u randomized.m3u sorted.m3u for i in $(ls -v) ; do echo '#PLAYLIST: '$i | cat - $i | sed 's/#EXTM3U//g' | awk NF >> everything-full.txt ; done # add #EXTM3U to the first line and change the text file to a m3u file format -cat everything-full.txt | awk '!seen[$0]++' | grep -B1 "http" | grep -A1 "EXTINF" | awk 'length>4' | sed '1s/^/#EXTM3U\n/' > everything-full.m3u +#cat everything-full.txt | awk '!seen[$0]++' | grep -B1 "http" | grep -A1 "EXTINF" | awk 'length>4' | sed '1s/^/#EXTM3U\n/' > everything-full.m3u +cat everything-full.txt | awk '!seen[$0]++' | sed '1s/^/#EXTM3U\n/' > everything-full.m3u # read the full file and remove all extra stuff, we just need the links cat everything-full.m3u | sed -n '/^#/!p' > everything-lite.m3u