diff --git a/peertube-cli.sh b/peertube-cli.sh index bc0e10c..c1ad89c 100755 --- a/peertube-cli.sh +++ b/peertube-cli.sh @@ -257,13 +257,14 @@ torrent_init videosmenu='All Videos' videosmenulocal='Local Videos' streamsmenu='Live streams' +manualinput='Manual URL' changepod='Switch instance' settings='Settings' checkapilimits='Check API limits (debug)' Exit='Exit' while true; do - choice=$(echo "$videosmenu\n$videosmenulocal\n$streamsmenu\n$changepod\n$settings\n$checkapilimits\n$Exit" | fzy) + choice=$(echo "$videosmenu\n$videosmenulocal\n$streamsmenu\n$manualinput\n$changepod\n$settings\n$checkapilimits\n$Exit" | fzy) case "$choice" in @@ -278,6 +279,18 @@ while true; do "$streamsmenu") peertube_api_get_live_streams 0 peertube_menu_videos 'lives' ;; + + "$manualinput") + echo 'Type' + type_choice=$(echo "Video\nStream" | fzy) + echo 'Input link:' + read url + url=$(echo $url | rev | cut -f1 -d/ | rev) + case $type_choice in + "Video") peertube_menu_video $url ;; + "Stream") peertube_menu_stream $url ;; + esac + ;; "$changepod") empty=0