SMOLNET PORTAL home about changes
tbrtv-news.sh - bitreich-tv - meme tv encoding and streaming
(URL) git clone git://src.adamsgaard.dk/bitreich-tv (git://src.adamsgaard.dk)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tbrtv-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
Response: application/gopher-menu
Original URLgopher://adamsgaard.dk/1/src/bitreich-tv/file/bin/brtv-ne...
Content-Typeapplication/gopher-menu; charset=utf-8