mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-22 15:59:21 +02:00
sub menu
This commit is contained in:
parent
e112a9dcaa
commit
c5e0d993ae
|
@ -18,6 +18,7 @@ funkwhale_api_get_tracks()
|
||||||
|
|
||||||
funkwhale_api_get_tracks_from_channel()
|
funkwhale_api_get_tracks_from_channel()
|
||||||
{
|
{
|
||||||
|
sub_menu=1
|
||||||
track_list=$(curl -s --compressed "$instance_point/tracks?channel=$1&playable=true&include_channels=true")
|
track_list=$(curl -s --compressed "$instance_point/tracks?channel=$1&playable=true&include_channels=true")
|
||||||
echo "Loaded $(echo $track_list | jj count) podcasts"
|
echo "Loaded $(echo $track_list | jj count) podcasts"
|
||||||
|
|
||||||
|
@ -32,9 +33,17 @@ funkwhale_api_get_tracks_from_channel()
|
||||||
echo "https://$instance$i\n" >> podcast.m3u8
|
echo "https://$instance$i\n" >> podcast.m3u8
|
||||||
counter=$(expr $counter + 1)
|
counter=$(expr $counter + 1)
|
||||||
done
|
done
|
||||||
menu_podcast_choice=$(echo $track_list | jj -l 'results.#.title' | sed 's/["#\.]//g' | fzy)
|
|
||||||
play_track=$(echo $track_name_url | jj "$menu_podcast_choice")
|
while [ $sub_menu -eq 1 ]; do
|
||||||
$default_player_command "https://$instance$play_track"
|
menu_podcast_choice=$(echo $track_list | jj -l 'results.#.title' | sed 's/["#\.]//g' | fzy)
|
||||||
|
play_track=$(echo $track_name_url | jj "$menu_podcast_choice")
|
||||||
|
$default_player_command "https://$instance$play_track"
|
||||||
|
case $(echo "Back\nMain menu" | fzy) in
|
||||||
|
"Back") echo '' ;;
|
||||||
|
|
||||||
|
"Main menu") sub_menu=0 ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
funkwhale_get_podcasts_artists()
|
funkwhale_get_podcasts_artists()
|
||||||
|
|
Loading…
Reference in New Issue