ReadComicOnline: fix selector (#11240)
This commit is contained in:
parent
cbbb7418b7
commit
9920f91ad4
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'ReadComicOnline'
|
||||
pkgNameSuffix = 'en.readcomiconline'
|
||||
extClass = '.Readcomiconline'
|
||||
extVersionCode = 10
|
||||
extVersionCode = 11
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -43,7 +43,7 @@ class Readcomiconline : ConfigurableSource, ParsedHttpSource() {
|
|||
Injekt.get<Application>().getSharedPreferences("source_$id", 0x0000)
|
||||
}
|
||||
|
||||
override fun popularMangaSelector() = "table.listing tr:has(a) td:nth-child(1) a"
|
||||
override fun popularMangaSelector() = ".list-comic > .item > a:first-child"
|
||||
|
||||
override fun latestUpdatesSelector() = popularMangaSelector()
|
||||
|
||||
|
@ -57,8 +57,9 @@ class Readcomiconline : ConfigurableSource, ParsedHttpSource() {
|
|||
|
||||
override fun popularMangaFromElement(element: Element): SManga {
|
||||
return SManga.create().apply {
|
||||
setUrlWithoutDomain(element.attr("href"))
|
||||
setUrlWithoutDomain(element.attr("abs:href"))
|
||||
title = element.text()
|
||||
thumbnail_url = element.selectFirst("img")!!.attr("abs:src")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue