Rewrite m3u conversion script to handle full urls in input - bitreich-tv - Meme TV encoding and streaming
HTML git clone git://bitreich.org/bitreich-tv git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/bitreich-tv
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR LICENSE
---
DIR commit 1bc040e93d7c32f1a9d272736ed57c18b1952832
DIR parent 4dbed1990ed587289774455d962949f76cd01b45
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
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(-)
---
DIR 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