diff --git a/src/ja/rawkuma/build.gradle b/src/ja/rawkuma/build.gradle index 985e18b17..5f791947d 100644 --- a/src/ja/rawkuma/build.gradle +++ b/src/ja/rawkuma/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Rawkuma' pkgNameSuffix = 'ja.rawkuma' extClass = '.Rawkuma' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/ja/rawkuma/src/eu/kanade/tachiyomi/extension/ja/rawkuma/Rawkuma.kt b/src/ja/rawkuma/src/eu/kanade/tachiyomi/extension/ja/rawkuma/Rawkuma.kt index 48c8d244c..7f30ef503 100644 --- a/src/ja/rawkuma/src/eu/kanade/tachiyomi/extension/ja/rawkuma/Rawkuma.kt +++ b/src/ja/rawkuma/src/eu/kanade/tachiyomi/extension/ja/rawkuma/Rawkuma.kt @@ -156,20 +156,18 @@ class Rawkuma: ParsedHttpSource() { val chapters = mutableListOf() document.select(chapterListSelector()).map { chapters.add(chapterFromElement(it)) } // Add date for latest chapter only - document.select("time[itemprop=dateModified]").attr("datetime") - .let { chapters[0].date_upload = parseDate(it) } + document.select("time[itemprop=dateModified]").text() + .let { + chapters[0].date_upload = parseDate(it) + } return chapters } private fun parseDate(date: String): Long { return try { - SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX", Locale.US).parse(date).time + SimpleDateFormat("MMM dd, yyyy", Locale.US).parse(date).time } catch (e: ParseException) { - try { - SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.US).parse(date.substringBefore("+")).time - } catch (e: ParseException) { - 0L - } + 0L } }