tMerge branch 'master' of localhost:bitreich-tv - bitreich-tv - meme tv encodin… | |
git clone git://src.adamsgaard.dk/bitreich-tv | |
Log | |
Files | |
Refs | |
--- | |
commit 9e67470e2373361dea9c5707f30323bff524023d | |
parent 6f3514847865e21a214ade45b3c8c01cf9cda678 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 13 Aug 2020 10:34:39 +0200 | |
Merge branch 'master' of localhost:bitreich-tv | |
Diffstat: | |
A brtv-playlist-to-m3u.sh | 13 +++++++++++++ | |
A brtv-playlist-to-pls.sh | 17 +++++++++++++++++ | |
2 files changed, 30 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/brtv-playlist-to-m3u.sh b/brtv-playlist-to-m3u.sh | |
t@@ -0,0 +1,13 @@ | |
+#!/bin/sh | |
+# supply playlist from brtv-start.sh as stdin | |
+ | |
+host="gopher://bitreich.org/9/memecache" | |
+ | |
+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" | |
+done | |
diff --git a/brtv-playlist-to-pls.sh b/brtv-playlist-to-pls.sh | |
t@@ -0,0 +1,17 @@ | |
+#!/bin/sh | |
+# supply playlist from brtv-start.sh as stdin | |
+ | |
+host="gopher://bitreich.org/9/memecache" | |
+ | |
+printf '[playlist]\n' | |
+ | |
+i=0 | |
+while IFS=' | |
+' read -r line; do | |
+ i=$((i + 1)) | |
+ filename="${line##*/}" | |
+ printf 'File%d=%s/%s\n' "$i" "$host" "$filename" | |
+ printf 'Title%d=bitreich-tv - #%s\n' "$i" "${filename%.*}" | |
+done | |
+ | |
+printf 'NumberOfEntries=%d\n' "$i" |