iOnly add titles for compatible formats and include gifs in stream - 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 acf6ca29394874f8f679761e1c4e17be8e849365 /scm/bitreich-tv/commit/acf6ca29394874f8f679761e1c4e17be8e849365.gph bitreich.org 70
1parent 819508532b3a30f49d841418f204ee2a710e94ea /scm/bitreich-tv/commit/819508532b3a30f49d841418f204ee2a710e94ea.gph bitreich.org 70
hAuthor: Anders Damsgaard <anders@adamsgaard.dk> URL:mailto:anders@adamsgaard.dk bitreich.org 70
iDate: Mon, 17 Aug 2020 10:48:14 +0200 Err bitreich.org 70
i Err bitreich.org 70
iOnly add titles for compatible formats and include gifs in stream Err bitreich.org 70
i Err bitreich.org 70
iDiffstat: Err bitreich.org 70
i M bin/brtv-generate-playlist.sh | 9 +++++++-- Err bitreich.org 70
i Err bitreich.org 70
i1 file changed, 7 insertions(+), 2 deletions(-) Err bitreich.org 70
i--- Err bitreich.org 70
1diff --git a/bin/brtv-generate-playlist.sh b/bin/brtv-generate-playlist.sh /scm/bitreich-tv/file/bin/brtv-generate-playlist.sh.gph bitreich.org 70
i@@ -19,12 +19,17 @@ regeximatch() { Err bitreich.org 70
i printf '%s' "$1" | grep -iEq "$2" Err bitreich.org 70
i } Err bitreich.org 70
i Err bitreich.org 70
i+add_title() { Err bitreich.org 70
i+ printf '%s/9/%s/%s\n' "$title_image_host" "$title_dir" "${1#\#}.${video_ext}" Err bitreich.org 70
i+} Err bitreich.org 70
i+ Err bitreich.org 70
i sort -R | while read -r tag url; do Err bitreich.org 70
i- printf '%s/9/%s/%s\n' "$title_image_host" "$title_dir" "${tag#\#}.${video_ext}" Err bitreich.org 70
i Err bitreich.org 70
i if regeximatch "$url" '\.(mkv|webm|mp4)$'; then Err bitreich.org 70
i+ add_title "$tag" Err bitreich.org 70
i printf '%s\n' "$url" Err bitreich.org 70
i- elif regeximatch "$url" '\.(jpg|jpeg|png)$'; then Err bitreich.org 70
i+ elif regeximatch "$url" '\.(jpg|jpeg|png|gif)$'; then Err bitreich.org 70
i+ add_title "$tag" Err bitreich.org 70
i printf '%s/9/%s/%s\n' "$title_image_host" "$img2vid_dir" "${tag#\#}.${video_ext}" Err bitreich.org 70
i else Err bitreich.org 70
i # skip mpv-incompatible formats that are not converted to videos Err bitreich.org 70
.
Response:
text/plain