iAdd example script generating playlist with new memes - bitreich-tv - Meme TV encoding and streaming Err bitreich.org 70
hgit clone git://bitreich.org/bitreich-tv git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/bitreich-tv URL:git://bitreich.org/bitreich-tv git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/bitreich-tv bitreich.org 70
1Log /scm/bitreich-tv/log.gph bitreich.org 70
1Files /scm/bitreich-tv/files.gph bitreich.org 70
1Refs /scm/bitreich-tv/refs.gph bitreich.org 70
1Tags /scm/bitreich-tv/tag bitreich.org 70
1LICENSE /scm/bitreich-tv/file/LICENSE.gph bitreich.org 70
i--- Err bitreich.org 70
1commit d6ab2724c3fce4a03e2806951534e638844ba65c /scm/bitreich-tv/commit/d6ab2724c3fce4a03e2806951534e638844ba65c.gph bitreich.org 70
1parent 0474236fd0133c2c595f5df4851639867913925b /scm/bitreich-tv/commit/0474236fd0133c2c595f5df4851639867913925b.gph bitreich.org 70
hAuthor: Anders Damsgaard <anders@adamsgaard.dk> URL:mailto:anders@adamsgaard.dk bitreich.org 70
iDate: Sun, 16 Aug 2020 22:49:38 +0200 Err bitreich.org 70
i Err bitreich.org 70
iAdd example script generating playlist with new memes Err bitreich.org 70
i Err bitreich.org 70
iDiffstat: Err bitreich.org 70
i A brtv-news.sh | 14 ++++++++++++++ Err bitreich.org 70
i Err bitreich.org 70
i1 file changed, 14 insertions(+), 0 deletions(-) Err bitreich.org 70
i--- Err bitreich.org 70
1diff --git a/brtv-news.sh b/brtv-news.sh /scm/bitreich-tv/file/brtv-news.sh.gph bitreich.org 70
i@@ -0,0 +1,14 @@ Err bitreich.org 70
i+#!/bin/sh Err bitreich.org 70
i+# outputs m3u playlist of memes added to the memecache the last two days Err bitreich.org 70
i+ Err bitreich.org 70
i+set -e Err bitreich.org 70
i+ Err bitreich.org 70
i+annna="/home/ad/code/annna" Err bitreich.org 70
i+tagfile="modules/hashtags/hashtags.txt" Err bitreich.org 70
i+ Err bitreich.org 70
i+(cd "/home/ad/code/annna" && Err bitreich.org 70
i+ git log --all --pretty="%s" --date=relative --since="2 days ago") | \ Err bitreich.org 70
i+grep 'Adding #' | sed 's/.* #/#/;s/ .*//' | \ Err bitreich.org 70
i+while read -r tag; do Err bitreich.org 70
i+ grep "$tag" "${annna}/${tagfile}" | head -1 Err bitreich.org 70
i+done | ./bin/brtv-generate-playlist.sh | ./bin/brtv-playlist-to-m3u.sh Err bitreich.org 70
.
Response:
text/plain