en/AniPlay: better server names in source list

This commit is contained in:
Josef František Straka 2024-11-21 23:32:12 +01:00
parent 66a163541e
commit 3369add44d

View file

@ -429,7 +429,7 @@ class AniPlay : AniListAnimeHttpSource(), ConfigurableAnimeSource {
if (index == -1) { if (index == -1) {
return "Other" return "Other"
} }
return PREF_SERVER_ENTRIES[index] return PREF_SERVER_ENTRIES2[index]
} }
private fun getTypeName(value: String): String { private fun getTypeName(value: String): String {
@ -459,6 +459,7 @@ class AniPlay : AniListAnimeHttpSource(), ConfigurableAnimeSource {
private const val PREF_SERVER_KEY = "server" private const val PREF_SERVER_KEY = "server"
private val PREF_SERVER_ENTRIES = arrayOf("Kuro (Gogoanime)", "Yuki (HiAnime)", "Yuno (Yugenanime)") private val PREF_SERVER_ENTRIES = arrayOf("Kuro (Gogoanime)", "Yuki (HiAnime)", "Yuno (Yugenanime)")
private val PREF_SERVER_ENTRIES2 = arrayOf("Kuro", "Yuki", "Yuno")
private val PREF_SERVER_ENTRY_VALUES = arrayOf("kuro", "yuki", "yuno") private val PREF_SERVER_ENTRY_VALUES = arrayOf("kuro", "yuki", "yuno")
private const val PREF_SERVER_DEFAULT = "kuro" private const val PREF_SERVER_DEFAULT = "kuro"