SMOLNET PORTAL home about changes
iadd random interlude in playlists - 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 6d8786defece0975d7b933139ed5200325813036	/scm/bitreich-tv/commit/6d8786defece0975d7b933139ed5200325813036.gph	bitreich.org	70
1parent 3ac2a8591be02f0ce27d8b6d38f9b52cb5a83ba4	/scm/bitreich-tv/commit/3ac2a8591be02f0ce27d8b6d38f9b52cb5a83ba4.gph	bitreich.org	70
hAuthor: Anders Damsgaard <anders@adamsgaard.dk>	URL:mailto:anders@adamsgaard.dk	bitreich.org	70
iDate:   Sat,  6 Feb 2021 22:59:59 +0100	Err	bitreich.org	70
i	Err	bitreich.org	70
iadd random interlude in playlists	Err	bitreich.org	70
i	Err	bitreich.org	70
iDiffstat:	Err	bitreich.org	70
i  M bin/brtv-generate-playlist.sh       |       5 +++++	Err	bitreich.org	70
i	Err	bitreich.org	70
i1 file changed, 5 insertions(+), 0 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@@ -11,6 +11,8 @@ title_image_host="gopher://bitreich.org&;	Err	bitreich.org	70
i title_dir="tv/title"	Err	bitreich.org	70
i img2vid_dir="tv/img2vid"	Err	bitreich.org	70
i video_ext="webm"	Err	bitreich.org	70
i+interludeurl="${title_image_host}/9/tv/tv-interlude.webm"	Err	bitreich.org	70
i+interludeoccur=5  # percentage of occurence, set to 0 to disable	Err	bitreich.org	70
i 	Err	bitreich.org	70
i ### CONFIGURATION END	Err	bitreich.org	70
i 	Err	bitreich.org	70
i@@ -35,4 +37,7 @@ while read -r tag url; do	Err	bitreich.org	70
i                 # skip mpv-incompatible formats that are not converted to videos	Err	bitreich.org	70
i                 continue	Err	bitreich.org	70
i         fi	Err	bitreich.org	70
i+        if test $(( RANDOM / 327 )) -lt "$interludeoccur"; then	Err	bitreich.org	70
i+                printf '%s\n' "${interludeurl}"	Err	bitreich.org	70
i+        fi	Err	bitreich.org	70
i done	Err	bitreich.org	70
.
Response: text/plain
Original URLgopher://bitreich.org/0/scm/bitreich-tv/commit/6d8786defe...
Content-Typetext/plain; charset=utf-8