mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-12-23 13:53:33 +02:00
sub menu
This commit is contained in:
parent
e112a9dcaa
commit
c5e0d993ae
1 changed files with 12 additions and 3 deletions
|
@ -18,6 +18,7 @@ funkwhale_api_get_tracks()
|
|||
|
||||
funkwhale_api_get_tracks_from_channel()
|
||||
{
|
||||
sub_menu=1
|
||||
track_list=$(curl -s --compressed "$instance_point/tracks?channel=$1&playable=true&include_channels=true")
|
||||
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
|
||||
counter=$(expr $counter + 1)
|
||||
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")
|
||||
$default_player_command "https://$instance$play_track"
|
||||
|
||||
while [ $sub_menu -eq 1 ]; do
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue