Rewrite m3u conversion script to handle full urls in input - bitreich-tv - Meme… | |
git clone git://bitreich.org/bitreich-tv git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfr… | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit 1bc040e93d7c32f1a9d272736ed57c18b1952832 | |
parent 4dbed1990ed587289774455d962949f76cd01b45 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Sun, 16 Aug 2020 22:16:57 +0200 | |
Rewrite m3u conversion script to handle full urls in input | |
Diffstat: | |
M brtv-playlist-to-m3u.sh | 10 ++++------ | |
1 file changed, 4 insertions(+), 6 deletions(-) | |
--- | |
diff --git a/brtv-playlist-to-m3u.sh b/brtv-playlist-to-m3u.sh | |
@@ -1,13 +1,11 @@ | |
#!/bin/sh | |
-# supply playlist from brtv-start.sh as stdin | |
- | |
-host="gopher://bitreich.org/9/memecache" | |
+# supply output from brtv-generate-playlist.sh as stdin | |
printf '#EXTM3U\n' | |
while IFS=' | |
' read -r line; do | |
- filename="${line##*/}" | |
- printf '#EXTINF:%s, bitreich-tv - #%s\n' "" "${filename%.*}" | |
- printf '%s/%s\n' "$host" "$filename" | |
+ f="${line##*/}" | |
+ printf '#EXTINF:%s, bitreich-tv - #%s\n' "" "${f%.*}" | |
+ printf '%s\n' "$line" | |
done |