reorder sub menu items

This commit is contained in:
localhost_frssoft 2022-04-04 01:30:33 +03:00
parent 2c942fd994
commit 3f97aad4b3

View File

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