NineMangaIt date parse fix (#1476)

NineMangaIt date parse fix
This commit is contained in:
Mike 2019-09-07 10:26:56 -04:00 committed by Eugene
parent 08340efb2d
commit be6e992590
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: NineManga' appName = 'Tachiyomi: NineManga'
pkgNameSuffix = "all.ninemanga" pkgNameSuffix = "all.ninemanga"
extClass = '.NineMangaEs; .NineMangaBr; .NineMangaEn; .NineMangaRu; .NineMangaDe; .NineMangaIt; .NineMangaFr' extClass = '.NineMangaEs; .NineMangaBr; .NineMangaEn; .NineMangaRu; .NineMangaDe; .NineMangaIt; .NineMangaFr'
extVersionCode = 3 extVersionCode = 4
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -468,7 +468,7 @@ class NineMangaIt : NineManga("NineMangaIt", "http://it.ninemanga.com", "it") {
val dateWords = date.split(" ") val dateWords = date.split(" ")
if (dateWords.size == 3) { if (dateWords.size == 3) {
if(!dateWords[1].contains(",")){ if(dateWords[1].contains(",")){
try { try {
return SimpleDateFormat("MMM d, yyyy", Locale.ENGLISH).parse(date).time return SimpleDateFormat("MMM d, yyyy", Locale.ENGLISH).parse(date).time
} catch (e: ParseException) { } catch (e: ParseException) {