brtv-news.sh - 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 --- brtv-news.sh (445B) --- 1 #!/bin/sh 2 # outputs m3u playlist of memes added to the memecache the last two days 3 4 annna="${1:-/home/ad/annna}" 5 tagfile="${2:-modules/hashtags/hashtags.txt}" 6 7 (cd "${annna}" && 8 git log --all --pretty="%s" --date=relative --since="2 days ago") | \ 9 grep 'Adding #' | sed 's/.* #/#/;s/ .*//' | \ 10 while read -r tag; do 11 grep "$tag" "${annna}/${tagfile}" | head -1 12 done | \ 13 sort -R | \ 14 bin/brtv-generate-playlist.sh | \ 15 bin/brtv-playlist-to-m3u.sh