Introduction
Introduction Statistics Contact Development Disclaimer Help
tTranslate plaintext playlist with local paths to mpv-compatible m3u - bitreich…
git clone git://src.adamsgaard.dk/bitreich-tv
Log
Files
Refs
---
commit 7c716dc90e5be37c2c557699ebe5c0c98feac290
parent 9955fec4d21435eae1aa98c8c7078932d192df5c
Author: Anders Damsgaard <[email protected]>
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(-)
---
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
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.