diff --git a/lib-multisrc/keyoapp/build.gradle.kts b/lib-multisrc/keyoapp/build.gradle.kts index 0f73d06ae..e1d07a25c 100644 --- a/lib-multisrc/keyoapp/build.gradle.kts +++ b/lib-multisrc/keyoapp/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("lib-multisrc") } -baseVersionCode = 11 +baseVersionCode = 12 dependencies { api(project(":lib:i18n")) diff --git a/lib-multisrc/keyoapp/src/eu/kanade/tachiyomi/multisrc/keyoapp/Keyoapp.kt b/lib-multisrc/keyoapp/src/eu/kanade/tachiyomi/multisrc/keyoapp/Keyoapp.kt index a162234ea..d7d2e003a 100644 --- a/lib-multisrc/keyoapp/src/eu/kanade/tachiyomi/multisrc/keyoapp/Keyoapp.kt +++ b/lib-multisrc/keyoapp/src/eu/kanade/tachiyomi/multisrc/keyoapp/Keyoapp.kt @@ -211,6 +211,7 @@ abstract class Keyoapp( protected open val authorSelector: String = "div:has(span:containsOwn(Author)) ~ div" protected open val artistSelector: String = "div:has(span:containsOwn(Artist)) ~ div" protected open val genreSelector: String = "div:has(span:containsOwn(Type)) ~ div" + protected open val dateSelector: String = ".text-xs" override fun mangaDetailsParse(document: Document): SManga = SManga.create().apply { title = document.selectFirst("div.grid > h1")!!.text() @@ -253,7 +254,7 @@ abstract class Keyoapp( override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply { setUrlWithoutDomain(element.selectFirst("a[href]")!!.attr("href")) name = element.selectFirst(".text-sm")!!.text() - element.selectFirst(".text-xs")?.run { + element.selectFirst(dateSelector)?.run { date_upload = text().trim().parseDate() } if (element.select("img[src*=Coin.svg]").isNotEmpty()) { @@ -337,8 +338,6 @@ abstract class Keyoapp( private fun String.parseRelativeDate(): Long { val now = Calendar.getInstance().apply { - set(Calendar.HOUR_OF_DAY, 0) - set(Calendar.MINUTE, 0) set(Calendar.SECOND, 0) set(Calendar.MILLISECOND, 0) } diff --git a/src/fr/astralmanga/build.gradle b/src/fr/astralmanga/build.gradle index be33266fe..5d94bb09d 100644 --- a/src/fr/astralmanga/build.gradle +++ b/src/fr/astralmanga/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.AstralManga' themePkg = 'madara' baseUrl = 'https://astral-manga.fr' - overrideVersionCode = 0 + overrideVersionCode = 1 } apply from: "$rootDir/common.gradle" diff --git a/src/fr/astralmanga/src/eu/kanade/tachiyomi/extension/fr/astralmanga/AstralManga.kt b/src/fr/astralmanga/src/eu/kanade/tachiyomi/extension/fr/astralmanga/AstralManga.kt index 639893902..ae35144c3 100644 --- a/src/fr/astralmanga/src/eu/kanade/tachiyomi/extension/fr/astralmanga/AstralManga.kt +++ b/src/fr/astralmanga/src/eu/kanade/tachiyomi/extension/fr/astralmanga/AstralManga.kt @@ -4,6 +4,6 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara import java.text.SimpleDateFormat import java.util.Locale -class AstralManga : Madara("AstralManga", "https://astral-manga.fr", "fr", dateFormat = SimpleDateFormat("dd/mm/yyyy", Locale.FRANCE)) { +class AstralManga : Madara("AstralManga", "https://astral-manga.fr", "fr", dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.FRANCE)) { override val useNewChapterEndpoint = true } diff --git a/src/fr/reaperscans/src/eu/kanade/tachiyomi/extension/fr/reaperscans/ReaperScans.kt b/src/fr/reaperscans/src/eu/kanade/tachiyomi/extension/fr/reaperscans/ReaperScans.kt index 29d5e8ee7..f5996e1a9 100644 --- a/src/fr/reaperscans/src/eu/kanade/tachiyomi/extension/fr/reaperscans/ReaperScans.kt +++ b/src/fr/reaperscans/src/eu/kanade/tachiyomi/extension/fr/reaperscans/ReaperScans.kt @@ -9,6 +9,7 @@ class ReaperScans : Keyoapp( "https://reaper-scans.fr", "fr", ) { + override val dateSelector = ".text-xs.w-fit" override fun mangaDetailsParse(document: Document): SManga = super.mangaDetailsParse(document).apply { diff --git a/src/fr/starboundscans/src/eu/kanade/tachiyomi/extension/fr/starboundscans/StarboundScans.kt b/src/fr/starboundscans/src/eu/kanade/tachiyomi/extension/fr/starboundscans/StarboundScans.kt index d1f461992..fbebdc4c6 100644 --- a/src/fr/starboundscans/src/eu/kanade/tachiyomi/extension/fr/starboundscans/StarboundScans.kt +++ b/src/fr/starboundscans/src/eu/kanade/tachiyomi/extension/fr/starboundscans/StarboundScans.kt @@ -2,4 +2,6 @@ package eu.kanade.tachiyomi.extension.fr.starboundscans import eu.kanade.tachiyomi.multisrc.keyoapp.Keyoapp -class StarboundScans : Keyoapp("Starbound Scans", "https://starboundscans.com", "fr") +class StarboundScans : Keyoapp("Starbound Scans", "https://starboundscans.com", "fr") { + override val dateSelector = "[class='text-xs text-white/50 w-fit']" +}