mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-27 17:43:02 +00:00
Added: listen all tracks in album
This commit is contained in:
parent
2a74f746d1
commit
1fbd34a1be
@ -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" ;;
|
||||
|
Loading…
Reference in New Issue
Block a user