This commit is contained in:
localhost_frssoft 2022-04-02 18:50:24 +03:00
parent e112a9dcaa
commit c5e0d993ae

View file

@ -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
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()