mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-26 02:41:27 +00:00
reorder sub menu items
This commit is contained in:
parent
2c942fd994
commit
3f97aad4b3
|
@ -25,10 +25,10 @@ funkwhale_api_get_tracks_from_channel()
|
||||||
|
|
||||||
while [ $sub2_menu -eq 1 ]; do
|
while [ $sub2_menu -eq 1 ]; do
|
||||||
titles=$(echo $track_list | jj -l 'results.#.title')
|
titles=$(echo $track_list | jj -l 'results.#.title')
|
||||||
menu_podcast_choice=$(echo "Main menu\nBack\n$titles" | fzy)
|
menu_podcast_choice=$(echo "Back\nMain menu\n$titles" | fzy)
|
||||||
case $menu_podcast_choice in
|
case $menu_podcast_choice in
|
||||||
"Main menu") sub2_menu=0 && sub_menu=0 ;;
|
|
||||||
"Back") sub2_menu=0 ;;
|
"Back") sub2_menu=0 ;;
|
||||||
|
"Main menu") sub2_menu=0 && sub_menu=0 ;;
|
||||||
*)
|
*)
|
||||||
play_track=$(echo $track_list | jj results.#[title="$menu_podcast_choice"].listen_url)
|
play_track=$(echo $track_list | jj results.#[title="$menu_podcast_choice"].listen_url)
|
||||||
$default_player_command "https://$instance$play_track" ;;
|
$default_player_command "https://$instance$play_track" ;;
|
||||||
|
|
Loading…
Reference in a new issue