Added: listen all tracks in album

This commit is contained in:
localhost_frssoft 2022-04-04 12:06:37 +03:00
parent 2a74f746d1
commit 1fbd34a1be

View file

@ -48,10 +48,19 @@ funkwhale_menu_albums_tracks()
while [ $sub2_menu -eq 1 ]; do
titles=$(echo $get_json | jj -l results.#.title)
menu_album_tracks_choice=$(echo "Back\nMain menu\n$titles" | fzy)
playlist=$(echo $get_json | jj -l results.#.listen_url | sed 's/"//g')
menu_album_tracks_choice=$(echo "Back\nMain menu\nListen all\n$titles" | fzy)
case $menu_album_tracks_choice in
"Back") sub2_menu=0 ;;
"Main menu") sub2_menu=0 && sub_menu=0 ;;
"Main menu") sub2_menu=0 && sub_menu=0 ;;
"Listen all")
echo > playlist.m3u8
for i in $playlist; do
echo "https://$instance$i\n" >> playlist.m3u8
done
$default_player_command playlist.m3u8 ;;
*)
play_track=$(echo $get_json | jj results.#[title="$menu_album_tracks_choice"].listen_url)
$default_player_command "https://$instance$play_track" ;;