Webtoons.com: Added German and changed zh to zh-Hant (#11031)

* Update WebtoonsGenerator.kt

* Add German and change zh to zh-Hant
This commit is contained in:
jopejoe1 2022-03-08 02:11:27 +13:00 committed by GitHub
parent 9e00e96b66
commit b1dfa39377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -15,6 +15,7 @@ class WebtoonsFactory : SourceFactory {
WebtoonsES(),
WebtoonsFR(),
WebtoonsZH(),
WebtoonsDE(),
)
}
class WebtoonsEN : Webtoons("Webtoons.com", "https://www.webtoons.com", "en")
@ -51,4 +52,8 @@ class WebtoonsES : Webtoons("Webtoons.com", "https://www.webtoons.com", "es") {
}
}
class WebtoonsFR : Webtoons("Webtoons.com", "https://www.webtoons.com", "fr", dateFormat = SimpleDateFormat("d MMM yyyy", Locale.FRENCH))
class WebtoonsZH : Webtoons("Webtoons.com", "https://www.webtoons.com", "zh", "zh-hant", "zh_TW", SimpleDateFormat("yyyy/MM/dd", Locale.TRADITIONAL_CHINESE))
class WebtoonsZH : Webtoons("Webtoons.com", "https://www.webtoons.com", "zh-Hant", "zh-hant", "zh_TW", SimpleDateFormat("yyyy/MM/dd", Locale.TRADITIONAL_CHINESE)) {
// Due to lang code getting more specific
override val id: Long = 2959982438613576472
}
class WebtoonsDE : Webtoons("Webtoons.com", "https://www.webtoons.com", "de", dateFormat = SimpleDateFormat("dd.MM.yyyy", Locale.GERMAN))

View File

@ -13,7 +13,7 @@ class WebtoonsGenerator : ThemeSourceGenerator {
override val baseVersionCode: Int = 2
override val sources = listOf(
MultiLang("Webtoons.com", "https://www.webtoons.com", listOf("en", "fr", "es", "id", "th", "zh"), className = "WebtoonsFactory", pkgName = "webtoons", overrideVersionCode = 31),
MultiLang("Webtoons.com", "https://www.webtoons.com", listOf("en", "fr", "es", "id", "th", "zh-Hant", "de"), className = "WebtoonsFactory", pkgName = "webtoons", overrideVersionCode = 32),
SingleLang("Dongman Manhua", "https://www.dongmanmanhua.cn", "zh")
)