commit 7c716dc90e5be37c2c557699ebe5c0c98feac290 parent 9955fec4d21435eae1aa98c8c7078932d192df5c 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(-)
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