parent
7eb8bc2179
commit
b6ae4d6c8d
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: Existential Comics'
|
appName = 'Tachiyomi: Existential Comics'
|
||||||
pkgNameSuffix = 'en.existentialcomics'
|
pkgNameSuffix = 'en.existentialcomics'
|
||||||
extClass = '.ExistentialComics'
|
extClass = '.ExistentialComics'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,15 +43,10 @@ class ExistentialComics : ParsedHttpSource() {
|
||||||
override fun chapterListSelector() = "div#date-comics ul li a:eq(0)"
|
override fun chapterListSelector() = "div#date-comics ul li a:eq(0)"
|
||||||
|
|
||||||
override fun chapterFromElement(element: Element): SChapter {
|
override fun chapterFromElement(element: Element): SChapter {
|
||||||
val urlregex = "https://existentialcomics.com/comic/(.*)".toRegex()
|
|
||||||
val chapterUrl = element.attr("href")
|
|
||||||
|
|
||||||
val number = urlregex.find(chapterUrl)!!.groupValues[1]
|
|
||||||
|
|
||||||
val chapter = SChapter.create()
|
val chapter = SChapter.create()
|
||||||
chapter.url = "/comic/$number"
|
chapter.setUrlWithoutDomain(element.attr("href"))
|
||||||
chapter.name = element.text()
|
chapter.name = element.text()
|
||||||
chapter.chapter_number = number.toFloat()
|
chapter.chapter_number = chapter.url.substringAfterLast("/").toFloat()
|
||||||
return chapter
|
return chapter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue