Fix wrong chapter url in CosplayTele (#2501)

* fix broken chapter url parsing

* Update build.gradle

Change version code
This commit is contained in:
Chaos Pjeles 2024-04-20 16:35:26 +01:00 committed by Draff
parent e465778aec
commit c7b5b45670
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'CosplayTele' extName = 'CosplayTele'
extClass = '.CosplayTele' extClass = '.CosplayTele'
extVersionCode = 1 extVersionCode = 2
isNsfw = true isNsfw = true
} }

View File

@ -135,7 +135,7 @@ class CosplayTele : ParsedHttpSource() {
override fun chapterFromElement(element: Element): SChapter { override fun chapterFromElement(element: Element): SChapter {
val chapter = SChapter.create() 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.name = "Gallery"
chapter.date_upload = getDate(element.select("time.updated").attr("datetime")) chapter.date_upload = getDate(element.select("time.updated").attr("datetime"))
return chapter return chapter