From c7b5b45670a0b8058345004e5bf9a06f5657f5df Mon Sep 17 00:00:00 2001 From: Chaos Pjeles Date: Sat, 20 Apr 2024 16:35:26 +0100 Subject: [PATCH] Fix wrong chapter url in CosplayTele (#2501) * fix broken chapter url parsing * Update build.gradle Change version code --- src/all/cosplaytele/build.gradle | 2 +- .../kanade/tachiyomi/extension/all/cosplaytele/CosplayTele.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/all/cosplaytele/build.gradle b/src/all/cosplaytele/build.gradle index dea28bd86..1e7304f17 100644 --- a/src/all/cosplaytele/build.gradle +++ b/src/all/cosplaytele/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'CosplayTele' extClass = '.CosplayTele' - extVersionCode = 1 + extVersionCode = 2 isNsfw = true } diff --git a/src/all/cosplaytele/src/eu/kanade/tachiyomi/extension/all/cosplaytele/CosplayTele.kt b/src/all/cosplaytele/src/eu/kanade/tachiyomi/extension/all/cosplaytele/CosplayTele.kt index 48680c5fa..0d4dad3b0 100644 --- a/src/all/cosplaytele/src/eu/kanade/tachiyomi/extension/all/cosplaytele/CosplayTele.kt +++ b/src/all/cosplaytele/src/eu/kanade/tachiyomi/extension/all/cosplaytele/CosplayTele.kt @@ -135,7 +135,7 @@ class CosplayTele : ParsedHttpSource() { override fun chapterFromElement(element: Element): SChapter { val chapter = SChapter.create() - chapter.setUrlWithoutDomain(element.select("link[rel=\"canonical\"]").attr("href")) + chapter.setUrlWithoutDomain(element.select("[rel=\"bookmark\"]").attr("href")) chapter.name = "Gallery" chapter.date_upload = getDate(element.select("time.updated").attr("datetime")) return chapter