Introduction
Introduction Statistics Contact Development Disclaimer Help
tAdd example script generating playlist with new memes - bitreich-tv - meme tv …
git clone git://src.adamsgaard.dk/bitreich-tv
Log
Files
Refs
LICENSE
---
commit d6ab2724c3fce4a03e2806951534e638844ba65c
parent 0474236fd0133c2c595f5df4851639867913925b
Author: Anders Damsgaard <[email protected]>
Date: Sun, 16 Aug 2020 22:49:38 +0200
Add example script generating playlist with new memes
Diffstat:
A brtv-news.sh | 14 ++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/brtv-news.sh b/brtv-news.sh
t@@ -0,0 +1,14 @@
+#!/bin/sh
+# outputs m3u playlist of memes added to the memecache the last two days
+
+set -e
+
+annna="/home/ad/code/annna"
+tagfile="modules/hashtags/hashtags.txt"
+
+(cd "/home/ad/code/annna" &&
+ git log --all --pretty="%s" --date=relative --since="2 days ago") | \
+grep 'Adding #' | sed 's/.* #/#/;s/ .*//' | \
+while read -r tag; do
+ grep "$tag" "${annna}/${tagfile}" | head -1
+done | ./bin/brtv-generate-playlist.sh | ./bin/brtv-playlist-to-m3u.sh
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.