Translate plaintext playlist with local paths to mpv-compatible m3u - bitreich-tv - Meme TV encoding and streaming
(HTM) git clone git://bitreich.org/bitreich-tv git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/bitreich-tv
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) LICENSE
---
(DIR) commit 7c716dc90e5be37c2c557699ebe5c0c98feac290
(DIR) parent 9955fec4d21435eae1aa98c8c7078932d192df5c
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 13 Aug 2020 10:20:43 +0200
Translate plaintext playlist with local paths to mpv-compatible m3u
Diffstat:
A brtv-playlist-to-m3u.sh | 13 +++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/brtv-playlist-to-m3u.sh b/brtv-playlist-to-m3u.sh
@@ -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