mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-22 16:51:27 +00:00
Compare commits
2 commits
2a74f746d1
...
c86ee8dd24
Author | SHA1 | Date | |
---|---|---|---|
localhost_frssoft | c86ee8dd24 | ||
localhost_frssoft | 1fbd34a1be |
|
@ -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:
|
||||
|
|
|
@ -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 a new issue