Compare commits

...

2 commits

Author SHA1 Message Date
localhost_frssoft c86ee8dd24 features upd 2022-04-04 13:16:07 +03:00
localhost_frssoft 1fbd34a1be Added: listen all tracks in album 2022-04-04 12:06:37 +03:00
2 changed files with 13 additions and 3 deletions

View file

@ -3,8 +3,9 @@ Just for fun. Simple "player" API script for FunkWhale instances.
Features:
* Download tracks url's in playlist per page
* Select and listen albums
* Select and listen podcasts
* Switch instance from public list in config.json[1] or manual input
* Switch instance from public list in config.json[1] or manual input. Also recent used instance list.
* All others futures maybe working 50/50
Depends:

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 ;;
"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" ;;