ReadComicOnline: fix selector (#11240)

This commit is contained in:
Vetle Ledaal 2022-03-26 17:03:47 +00:00 committed by GitHub
parent cbbb7418b7
commit 9920f91ad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'ReadComicOnline'
pkgNameSuffix = 'en.readcomiconline'
extClass = '.Readcomiconline'
extVersionCode = 10
extVersionCode = 11
}
apply from: "$rootDir/common.gradle"

View File

@ -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")
}
}