Added manual input link

This commit is contained in:
localhost_frssoft 2022-04-12 23:15:14 +03:00
parent 4024347362
commit 2ae2464155
1 changed files with 14 additions and 1 deletions

View File

@ -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