Added donate info if avalaible on video/stream

This commit is contained in:
localhost_frssoft 2022-04-06 14:23:50 +03:00
parent 00a2f0d6b3
commit 2a31a63bbf
1 changed files with 8 additions and 0 deletions

View File

@ -94,6 +94,10 @@ peertube_menu_video()
name=$(echo $get_video | jj name)
desc=$(echo $get_video | jj description)
channel=$(echo $get_video | jj channel.name)
support_author=$(echo $get_video | jj support)
if [ -n "$support_author" ]; then
echo "Support/Donate: $support_author"
fi
check_hls_empty=$(echo $get_video | jj streamingPlaylists.0)
if [ -z $check_hls_empty ]; then
hls=''
@ -141,6 +145,10 @@ peertube_menu_stream()
name=$(echo $get_video | jj name)
desc=$(echo $get_video | jj description)
channel=$(echo $get_video | jj channel.name)
support_author=$(echo $get_video | jj support)
if [ -n "$support_author" ]; then
echo "Support/Donate: $support_author"
fi
playlist_stream=$(echo $get_video | jj streamingPlaylists.0.playlistUrl)
state=$(echo $get_video | jj state.label)
echo "Status: $state"