Add gopher channel - 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 d03c3e898f096c517ce2612b1a2bb11a7a982987 DIR parent 178229acd2a49dc65dbdb6bebfc1fa753eca0eec HTML Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Mon, 17 Aug 2020 07:41:39 +0200 Add gopher channel Diffstat: M brtv-generate-playlists.sh | 2 +- A brtv-gopher.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) --- DIR diff --git a/brtv-generate-playlists.sh b/brtv-generate-playlists.sh @@ -12,6 +12,6 @@ cd "$brtv" ./bin/brtv-imgs-to-video.sh < "${annna}/${tagfile}" >/dev/null f="$(mktemp)" -for channel in news all corona slav; do +for channel in news all gopher corona slav; do ./"brtv-${channel}.sh" > "$f" && cp "$f" "/var/gopher/${channel}.m3u" done DIR diff --git a/brtv-gopher.sh b/brtv-gopher.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# outputs m3u playlist of memes containing 'gopher' + +set -e + +annna="/home/ad/code/annna" +tagfile="modules/hashtags/hashtags.txt" + +grep -E "^#[A-z0-9-]*gopher[A-z0-9-]* " "${annna}/${tagfile}" | \ +bin/brtv-generate-playlist.sh | \ +bin/brtv-playlist-to-m3u.sh