Do not randomize playlists automatically - bitreich-tv - Meme TV encoding and streaming
 (HTM) git clone git://bitreich.org/bitreich-tv git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/bitreich-tv
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) LICENSE
       ---
 (DIR) commit 43e65f21c98fa9ebc6d8970e1b877db0804eed3f
 (DIR) parent c6593d91ceb081ec0459266ece964f7741acb59b
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Thu, 27 Aug 2020 08:49:09 +0200
       
       Do not randomize playlists automatically
       
       Diffstat:
         M bin/brtv-generate-playlist.sh       |       6 +++---
         M brtv-all.sh                         |       3 ++-
         M brtv-bitreich.sh                    |       1 +
         M brtv-corona.sh                      |       1 +
         M brtv-gopher.sh                      |       1 +
         M brtv-news.sh                        |       5 ++++-
         M brtv-slav.sh                        |       1 +
       
       7 files changed, 13 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/bin/brtv-generate-playlist.sh b/bin/brtv-generate-playlist.sh
       @@ -1,7 +1,7 @@
        #!/bin/sh
        # supply hashtags.txt as stdin
       -# output is a randomized plaintext playlist with urls to memes and respective
       -# titles.
       +# output is a plaintext playlist with urls to memes and title slides
       +# titles and image memes are served on a separate host ($title_image_host)
        
        
        ### CONFIGURATION START
       @@ -23,7 +23,7 @@ add_title() {
                printf '%s/9/%s/%s\n' "$title_image_host" "$title_dir" "${1#\#}.${video_ext}"
        }
        
       -sort -R | while read -r tag url; do
       +while read -r tag url; do
                        
                if regeximatch "$url" '\.(mkv|webm|mp4)$'; then
                        add_title "$tag"
 (DIR) diff --git a/brtv-all.sh b/brtv-all.sh
       @@ -6,5 +6,6 @@ set -e
        annna="/home/ad/code/annna"
        tagfile="modules/hashtags/hashtags.txt"
        
       -bin/brtv-generate-playlist.sh < "${annna}/${tagfile}" | \
       +sort -R "${annna}/${tagfile}" | \
       +bin/brtv-generate-playlist.sh | \
        bin/brtv-playlist-to-m3u.sh
 (DIR) diff --git a/brtv-bitreich.sh b/brtv-bitreich.sh
       @@ -7,5 +7,6 @@ annna="/home/ad/code/annna"
        tagfile="modules/hashtags/hashtags.txt"
        
        grep -E "^#[A-z0-9-]*bitreich[A-z0-9-]* " "${annna}/${tagfile}" | \
       +sort -R | \
        bin/brtv-generate-playlist.sh | \
        bin/brtv-playlist-to-m3u.sh
 (DIR) diff --git a/brtv-corona.sh b/brtv-corona.sh
       @@ -7,5 +7,6 @@ annna="/home/ad/code/annna"
        tagfile="modules/hashtags/hashtags.txt"
        
        grep -E "^#corona-" "${annna}/${tagfile}" | \
       +sort -R | \
        bin/brtv-generate-playlist.sh | \
        bin/brtv-playlist-to-m3u.sh
 (DIR) diff --git a/brtv-gopher.sh b/brtv-gopher.sh
       @@ -7,5 +7,6 @@ annna="/home/ad/code/annna"
        tagfile="modules/hashtags/hashtags.txt"
        
        grep -E "^#[A-z0-9-]*gopher[A-z0-9-]* " "${annna}/${tagfile}" | \
       +sort -R | \
        bin/brtv-generate-playlist.sh | \
        bin/brtv-playlist-to-m3u.sh
 (DIR) diff --git a/brtv-news.sh b/brtv-news.sh
       @@ -11,4 +11,7 @@ tagfile="modules/hashtags/hashtags.txt"
        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
       +done | \
       +sort -R | \
       +bin/brtv-generate-playlist.sh | \
       +bin/brtv-playlist-to-m3u.sh
 (DIR) diff --git a/brtv-slav.sh b/brtv-slav.sh
       @@ -7,5 +7,6 @@ annna="/home/ad/code/annna"
        tagfile="modules/hashtags/hashtags.txt"
        
        grep -E "^#slav-" "${annna}/${tagfile}" | \
       +sort -R | \
        bin/brtv-generate-playlist.sh | \
        bin/brtv-playlist-to-m3u.sh