Batoto: Merge English and English (US) (#212)

* Batoto: Fix popular/latest in en_US

* Batoto: Merge English with English (US)
This commit is contained in:
beerpsi 2024-01-13 14:35:14 +07:00 committed by Draff
parent c6276c8a7d
commit d88fb5f595
3 changed files with 3 additions and 4 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Bato.to'
pkgNameSuffix = 'all.batoto'
extClass = '.BatoToFactory'
extVersionCode = 32
extVersionCode = 34
isNsfw = true
}

View File

@ -109,7 +109,7 @@ open class BatoTo(
override fun latestUpdatesSelector(): String {
return when (siteLang) {
"" -> "div#series-list div.col"
"en" -> "div#series-list div.col.no-flag"
"en,en_us" -> "div#series-list div.col.no-flag"
else -> "div#series-list div.col:has([data-lang=\"$siteLang\"])"
}
}

View File

@ -11,7 +11,7 @@ class LanguageOption(val lang: String, val siteLang: String = lang)
private val languages = listOf(
LanguageOption("all", ""),
// Lang options from publish.bato.to
LanguageOption("en"),
LanguageOption("en", "en,en_us"),
LanguageOption("ar"),
LanguageOption("bg"),
LanguageOption("zh"),
@ -58,7 +58,6 @@ private val languages = listOf(
LanguageOption("zh-Hans", "zh_hk"),
LanguageOption("zh-Hant", "zh_tw"),
LanguageOption("hr"),
LanguageOption("en-US", "en_us"),
LanguageOption("eo"),
LanguageOption("et"),
LanguageOption("fo"),