Added manual input link
This commit is contained in:
parent
4024347362
commit
2ae2464155
|
@ -257,13 +257,14 @@ torrent_init
|
||||||
videosmenu='All Videos'
|
videosmenu='All Videos'
|
||||||
videosmenulocal='Local Videos'
|
videosmenulocal='Local Videos'
|
||||||
streamsmenu='Live streams'
|
streamsmenu='Live streams'
|
||||||
|
manualinput='Manual URL'
|
||||||
changepod='Switch instance'
|
changepod='Switch instance'
|
||||||
settings='Settings'
|
settings='Settings'
|
||||||
checkapilimits='Check API limits (debug)'
|
checkapilimits='Check API limits (debug)'
|
||||||
Exit='Exit'
|
Exit='Exit'
|
||||||
|
|
||||||
while true; do
|
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
|
case "$choice" in
|
||||||
|
|
||||||
|
@ -278,6 +279,18 @@ while true; do
|
||||||
"$streamsmenu")
|
"$streamsmenu")
|
||||||
peertube_api_get_live_streams 0
|
peertube_api_get_live_streams 0
|
||||||
peertube_menu_videos 'lives' ;;
|
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")
|
"$changepod")
|
||||||
empty=0
|
empty=0
|
||||||
|
|
Loading…
Reference in New Issue