added public list instances and switch updated

This commit is contained in:
localhost_frssoft 2022-04-01 02:52:11 +03:00
parent abdac1f0d0
commit b4689068f3
2 changed files with 35 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{
"instance": "sound.redeyes.club"
"instance": "sound.redeyes.club",
"tags": [
"TagOFF",
"8bit",
@ -10,5 +10,33 @@
"Electronica",
"Classic",
"Violin"
],
"public_list_instances": [
"open.audio",
"funkwhale.co.uk",
"am.pirateradio.social",
"audio.liberta.vip",
"audio.gafamfree.party",
"tanukitunes.com",
"funkwhale.juniorjpdj.pl",
"tavia.mle.party",
"funkwhale.thurk.org",
"buzzworkers.com",
"soundship.de",
"funkwhale.kameha.click",
"music.chosto.me",
"zik.goe.land",
"music.humanoids.be",
"music.hempton.us",
"mizik.o-k-i.net",
"klh.radiolivre.org",
"hudba.feildel.fr",
"funkwhale.mita.me",
"funk.deko.cloud",
"audio.graz.social",
"funkwhale.desmu.fr",
"listen.knsm.cc",
"funkwhale.gegeweb.eu",
"shitnoise.monster"
]
}

View File

@ -106,8 +106,12 @@ elif [ "$choice" = "$podcasts" ]; then
read page
funkwhale_get_podcasts_artists $page
elif [ "$choice" = "$changepod" ]; then
if [ 'Choice from list' = "$(echo 'Choice from list\nManual input' | fzy)" ]; then
instance=$(jj -l -i config.json public_list_instances | sed 's/"//g' | fzy)
else
echo "Type instance (ex. $instance):"
read instance
fi
export instance
conf_instance_state=$(echo 'Permanent\nTemporaly' | fzy)
if [ "$conf_instance_state" = 'Permanent' ]; then