tAdd gopher channel - bitreich-tv - meme tv encoding and streaming | |
git clone git://src.adamsgaard.dk/bitreich-tv | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit d03c3e898f096c517ce2612b1a2bb11a7a982987 | |
parent 178229acd2a49dc65dbdb6bebfc1fa753eca0eec | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
diff --git a/brtv-generate-playlists.sh b/brtv-generate-playlists.sh | |
t@@ -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 | |
diff --git a/brtv-gopher.sh b/brtv-gopher.sh | |
t@@ -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 |