mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-27 17:43:02 +00:00
switchable instance feature added
This commit is contained in:
parent
ae6dd9f069
commit
d4d5a17268
@ -34,16 +34,22 @@ load_tracks_to_playlist()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
funkwhale_api_get_tracks 1 1>> /dev/null
|
get_all_avalaible_count_tracks()
|
||||||
echo "Tracks avalaible on $instance: $count_all_tracks\n"
|
{
|
||||||
|
funkwhale_api_get_tracks 1 1>> /dev/null
|
||||||
|
echo "Tracks avalaible on $instance: $count_all_tracks\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
get_all_avalaible_count_tracks
|
||||||
|
|
||||||
downloadtrackspls='Download tracks in playlist'
|
downloadtrackspls='Download tracks in playlist'
|
||||||
startplayer='Start player'
|
startplayer='Start player'
|
||||||
|
changepod='Switch instance'
|
||||||
checkapilimits='Check API limits (debug)'
|
checkapilimits='Check API limits (debug)'
|
||||||
Exit='Exit'
|
Exit='Exit'
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
choice=$(echo "$downloadtrackspls\n$startplayer\n$checkapilimits\n$Exit" | fzy)
|
choice=$(echo "$downloadtrackspls\n$startplayer\n$checkapilimits\n$changepod\n$Exit" | fzy)
|
||||||
|
|
||||||
if [ "$choice" = "$downloadtrackspls" ]; then
|
if [ "$choice" = "$downloadtrackspls" ]; then
|
||||||
echo 'Enter page number: '
|
echo 'Enter page number: '
|
||||||
@ -51,6 +57,12 @@ if [ "$choice" = "$downloadtrackspls" ]; then
|
|||||||
load_tracks_to_playlist $page
|
load_tracks_to_playlist $page
|
||||||
elif [ "$choice" = "$startplayer" ]; then
|
elif [ "$choice" = "$startplayer" ]; then
|
||||||
$default_player --no-vid --no-ytdl playlist.m3u8
|
$default_player --no-vid --no-ytdl playlist.m3u8
|
||||||
|
elif [ "$choice" = "$changepod" ]; then
|
||||||
|
echo "Type instance (ex. $instance):"
|
||||||
|
read instance
|
||||||
|
export instance
|
||||||
|
clear
|
||||||
|
get_all_avalaible_count_tracks
|
||||||
elif [ "$choice" = "$checkapilimits" ]; then
|
elif [ "$choice" = "$checkapilimits" ]; then
|
||||||
funkwhale_api_check_api_limits | more
|
funkwhale_api_check_api_limits | more
|
||||||
elif [ "$choice" = "$Exit" ]; then
|
elif [ "$choice" = "$Exit" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user