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' extName = 'Bato.to'
pkgNameSuffix = 'all.batoto' pkgNameSuffix = 'all.batoto'
extClass = '.BatoToFactory' extClass = '.BatoToFactory'
extVersionCode = 32 extVersionCode = 34
isNsfw = true isNsfw = true
} }

View File

@ -109,7 +109,7 @@ open class BatoTo(
override fun latestUpdatesSelector(): String { override fun latestUpdatesSelector(): String {
return when (siteLang) { return when (siteLang) {
"" -> "div#series-list div.col" "" -> "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\"])" 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( private val languages = listOf(
LanguageOption("all", ""), LanguageOption("all", ""),
// Lang options from publish.bato.to // Lang options from publish.bato.to
LanguageOption("en"), LanguageOption("en", "en,en_us"),
LanguageOption("ar"), LanguageOption("ar"),
LanguageOption("bg"), LanguageOption("bg"),
LanguageOption("zh"), LanguageOption("zh"),
@ -58,7 +58,6 @@ private val languages = listOf(
LanguageOption("zh-Hans", "zh_hk"), LanguageOption("zh-Hans", "zh_hk"),
LanguageOption("zh-Hant", "zh_tw"), LanguageOption("zh-Hant", "zh_tw"),
LanguageOption("hr"), LanguageOption("hr"),
LanguageOption("en-US", "en_us"),
LanguageOption("eo"), LanguageOption("eo"),
LanguageOption("et"), LanguageOption("et"),
LanguageOption("fo"), LanguageOption("fo"),