mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-27 00:51:28 +00:00
Compare commits
No commits in common. "c86ee8dd24bbe2dfb0c6bff447560622090fff6b" and "2a74f746d18e37cbd6145419506b8fa62abb808e" have entirely different histories.
c86ee8dd24
...
2a74f746d1
|
@ -3,9 +3,8 @@ Just for fun. Simple "player" API script for FunkWhale instances.
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
* Download tracks url's in playlist per page
|
* Download tracks url's in playlist per page
|
||||||
* Select and listen albums
|
|
||||||
* Select and listen podcasts
|
* Select and listen podcasts
|
||||||
* Switch instance from public list in config.json[1] or manual input. Also recent used instance list.
|
* Switch instance from public list in config.json[1] or manual input
|
||||||
* All others futures maybe working 50/50
|
* All others futures maybe working 50/50
|
||||||
|
|
||||||
Depends:
|
Depends:
|
||||||
|
|
|
@ -48,19 +48,10 @@ funkwhale_menu_albums_tracks()
|
||||||
|
|
||||||
while [ $sub2_menu -eq 1 ]; do
|
while [ $sub2_menu -eq 1 ]; do
|
||||||
titles=$(echo $get_json | jj -l results.#.title)
|
titles=$(echo $get_json | jj -l results.#.title)
|
||||||
playlist=$(echo $get_json | jj -l results.#.listen_url | sed 's/"//g')
|
menu_album_tracks_choice=$(echo "Back\nMain menu\n$titles" | fzy)
|
||||||
menu_album_tracks_choice=$(echo "Back\nMain menu\nListen all\n$titles" | fzy)
|
|
||||||
case $menu_album_tracks_choice in
|
case $menu_album_tracks_choice in
|
||||||
"Back") sub2_menu=0 ;;
|
"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)
|
play_track=$(echo $get_json | jj results.#[title="$menu_album_tracks_choice"].listen_url)
|
||||||
$default_player_command "https://$instance$play_track" ;;
|
$default_player_command "https://$instance$play_track" ;;
|
||||||
|
|
Loading…
Reference in a new issue