diff --git a/config.json b/config.json index dcd64ab..45a63ba 100644 --- a/config.json +++ b/config.json @@ -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" ] } diff --git a/funkwhale-cli.sh b/funkwhale-cli.sh index ad97643..f2aea39 100755 --- a/funkwhale-cli.sh +++ b/funkwhale-cli.sh @@ -106,8 +106,12 @@ elif [ "$choice" = "$podcasts" ]; then read page funkwhale_get_podcasts_artists $page elif [ "$choice" = "$changepod" ]; then - echo "Type instance (ex. $instance):" - read instance + 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