From be6e992590cce73731eb94cf562696c58bc5de0e Mon Sep 17 00:00:00 2001 From: Mike <51273546+SnakeDoc83@users.noreply.github.com> Date: Sat, 7 Sep 2019 10:26:56 -0400 Subject: [PATCH] NineMangaIt date parse fix (#1476) NineMangaIt date parse fix --- src/all/ninemanga/build.gradle | 2 +- .../tachiyomi/extension/all/ninemanga/NineMangaFactory.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/all/ninemanga/build.gradle b/src/all/ninemanga/build.gradle index 915bd1385..bf0546578 100644 --- a/src/all/ninemanga/build.gradle +++ b/src/all/ninemanga/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: NineManga' pkgNameSuffix = "all.ninemanga" extClass = '.NineMangaEs; .NineMangaBr; .NineMangaEn; .NineMangaRu; .NineMangaDe; .NineMangaIt; .NineMangaFr' - extVersionCode = 3 + extVersionCode = 4 libVersion = '1.2' } diff --git a/src/all/ninemanga/src/eu/kanade/tachiyomi/extension/all/ninemanga/NineMangaFactory.kt b/src/all/ninemanga/src/eu/kanade/tachiyomi/extension/all/ninemanga/NineMangaFactory.kt index e5e8fe8cb..1e27802dd 100644 --- a/src/all/ninemanga/src/eu/kanade/tachiyomi/extension/all/ninemanga/NineMangaFactory.kt +++ b/src/all/ninemanga/src/eu/kanade/tachiyomi/extension/all/ninemanga/NineMangaFactory.kt @@ -468,7 +468,7 @@ class NineMangaIt : NineManga("NineMangaIt", "http://it.ninemanga.com", "it") { val dateWords = date.split(" ") if (dateWords.size == 3) { - if(!dateWords[1].contains(",")){ + if(dateWords[1].contains(",")){ try { return SimpleDateFormat("MMM d, yyyy", Locale.ENGLISH).parse(date).time } catch (e: ParseException) {