diff --git a/multisrc/overrides/webtoons/webtoons/src/WebtoonsFactory.kt b/multisrc/overrides/webtoons/webtoons/src/WebtoonsFactory.kt index 3ad66c90c..20f3a88d0 100644 --- a/multisrc/overrides/webtoons/webtoons/src/WebtoonsFactory.kt +++ b/multisrc/overrides/webtoons/webtoons/src/WebtoonsFactory.kt @@ -38,16 +38,15 @@ class WebtoonsID : Webtoons("Webtoons.com", "https://www.webtoons.com", "id") { } class WebtoonsTH : Webtoons("Webtoons.com", "https://www.webtoons.com", "th", dateFormat = SimpleDateFormat("d MMM yyyy", Locale("th"))) class WebtoonsES : Webtoons("Webtoons.com", "https://www.webtoons.com", "es") { - // Android seems to be unable to parse es dates like Indonesian; we'll use a short hard-coded table - // instead. + // Android seems to be unable to parse es dates like Indonesian; we'll use a short hard-coded table instead. private val dateMap: Array = arrayOf( - "Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic" + "ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "sep", "oct", "nov", "dic" ) override fun chapterParseDate(date: String): Long { - val expr = Regex("""(\d+)-([a-z]{3})-(\d{4})""").find(date) ?: return 0 + val expr = Regex("""(\d+)-([A-Za-z]{3})-(\d{4})""").find(date) ?: return 0 val (_, day, monthString, year) = expr.groupValues - val monthIndex = dateMap.indexOf(monthString) + val monthIndex = dateMap.indexOf(monthString.lowercase(Locale("es"))) return GregorianCalendar(year.toInt(), monthIndex, day.toInt()).time.time } } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/webtoons/WebtoonsGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/webtoons/WebtoonsGenerator.kt index 4bf564625..dc32fd3cb 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/webtoons/WebtoonsGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/webtoons/WebtoonsGenerator.kt @@ -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-Hant", "de"), className = "WebtoonsFactory", pkgName = "webtoons", overrideVersionCode = 35), + MultiLang("Webtoons.com", "https://www.webtoons.com", listOf("en", "fr", "es", "id", "th", "zh-Hant", "de"), className = "WebtoonsFactory", pkgName = "webtoons", overrideVersionCode = 36), SingleLang("Dongman Manhua", "https://www.dongmanmanhua.cn", "zh") )