Fix(en/Aniplay): Fixes and Improvements #382
1 changed files with 6 additions and 0 deletions
|
@ -426,11 +426,17 @@ class AniPlay : AniListAnimeHttpSource(), ConfigurableAnimeSource {
|
|||
}
|
||||
private fun getServerName(value: String): String {
|
||||
val index = PREF_SERVER_ENTRY_VALUES.indexOf(value)
|
||||
if (index == -1) {
|
||||
return "Other"
|
||||
}
|
||||
return PREF_SERVER_ENTRIES[index]
|
||||
}
|
||||
|
||||
private fun getTypeName(value: String): String {
|
||||
val index = PREF_TYPE_ENTRY_VALUES.indexOf(value)
|
||||
if (index == -1) {
|
||||
return "Other"
|
||||
}
|
||||
return PREF_TYPE_ENTRIES[index]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue