mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-27 17:43:02 +00:00
Create config file, choice state instance, reorder menu
This commit is contained in:
parent
abc03c2b43
commit
756d11f99c
3
config.json
Normal file
3
config.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"instance": "sound.redeyes.club"
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
instance='sound.redeyes.club'
|
instance=$(jj -i config.json instance)
|
||||||
default_player=mpv
|
default_player=mpv
|
||||||
ordering='title'
|
ordering='title'
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ checkapilimits='Check API limits (debug)'
|
|||||||
Exit='Exit'
|
Exit='Exit'
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
choice=$(echo "$downloadtrackspls\n$startplayer\n$checkapilimits\n$changepod\n$Exit" | fzy)
|
choice=$(echo "$downloadtrackspls\n$startplayer\n$changepod\n$checkapilimits\n$Exit" | fzy)
|
||||||
|
|
||||||
if [ "$choice" = "$downloadtrackspls" ]; then
|
if [ "$choice" = "$downloadtrackspls" ]; then
|
||||||
echo 'Order by (prefix - is DESC ordering):'
|
echo 'Order by (prefix - is DESC ordering):'
|
||||||
@ -64,6 +64,12 @@ elif [ "$choice" = "$changepod" ]; then
|
|||||||
echo "Type instance (ex. $instance):"
|
echo "Type instance (ex. $instance):"
|
||||||
read instance
|
read instance
|
||||||
export instance
|
export instance
|
||||||
|
conf_instance_state=$(echo 'Permanent\nTemporaly' | fzy)
|
||||||
|
if [ "$conf_instance_state" = 'Permanent' ]; then
|
||||||
|
jj -i config.json instance -v $instance -o config.json
|
||||||
|
else
|
||||||
|
echo ''
|
||||||
|
fi
|
||||||
clear
|
clear
|
||||||
get_all_avalaible_count_tracks
|
get_all_avalaible_count_tracks
|
||||||
elif [ "$choice" = "$checkapilimits" ]; then
|
elif [ "$choice" = "$checkapilimits" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user