Rewrite pls 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 9b28bd7e0cfd72c0febb9087936771825e2b47b2 DIR parent 1bc040e93d7c32f1a9d272736ed57c18b1952832 HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Sun, 16 Aug 2020 22:19:30 +0200 Rewrite pls conversion script to handle full urls in input Diffstat: M brtv-playlist-to-pls.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) --- DIR diff --git a/brtv-playlist-to-pls.sh b/brtv-playlist-to-pls.sh @@ -1,17 +1,15 @@ #!/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 '[playlist]\n' i=0 while IFS=' -' read -r line; do +' read -r url; do i=$((i + 1)) - filename="${line##*/}" - printf 'File%d=%s/%s\n' "$i" "$host" "$filename" - printf 'Title%d=bitreich-tv - #%s\n' "$i" "${filename%.*}" + f="${url##*/}" + printf 'File%d=%s\n' "$i" "$url" + printf 'Title%d=bitreich-tv - #%s\n' "$i" "${f%.*}" done printf 'NumberOfEntries=%d\n' "$i"