From 2a31a63bbffb854e8ecb72b301394bda43b849ee Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Wed, 6 Apr 2022 14:23:50 +0300 Subject: [PATCH] Added donate info if avalaible on video/stream --- peertube-cli.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/peertube-cli.sh b/peertube-cli.sh index e3e4a82..473543d 100755 --- a/peertube-cli.sh +++ b/peertube-cli.sh @@ -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"