Add example script for regenerating playlists - 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 c916aa89b6e9184911297826cb2cdc31c1b0fe46 DIR parent 3f7b865c858b443df5811ff03cdde199c4770903 HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Mon, 17 Aug 2020 00:27:46 +0200 Add example script for regenerating playlists Diffstat: A brtv-generate-playlists.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+), 0 deletions(-) --- DIR diff --git a/brtv-generate-playlists.sh b/brtv-generate-playlists.sh @@ -0,0 +1,17 @@ +#!/bin/sh +set -e +annna="$HOME/code/annna" +tagfile="modules/hashtags/hashtags.txt" +brtv="$HOME/code/bitreich-tv" + +cd "$annna" +git pull >/dev/null + +cd "$brtv" +./bin/brtv-generate-title-slides.sh < "${annna}/${tagfile}" >/dev/null +./bin/brtv-imgs-to-video.sh < "${annna}/${tagfile}" >/dev/null +f="$(mktemp)" + +for channel in news all corona slav; do + ./"brtv-${channel}.sh" > "$f" && cp "$f" "/var/gopher/${channel}.m3u" +done