Realm Scans: Fix image parsing (#10385)
This commit is contained in:
parent
5c190c4ce8
commit
28e4219264
|
@ -1,5 +1,20 @@
|
|||
package eu.kanade.tachiyomi.extension.en.realmscans
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
import org.jsoup.nodes.Document
|
||||
|
||||
class RealmScans : WPMangaReader("Realm Scans", "https://realmscans.com", "en", "/series")
|
||||
class RealmScans : WPMangaReader("Realm Scans", "https://realmscans.com", "en", "/series") {
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
countViews(document)
|
||||
|
||||
return document.select(pageSelector).mapIndexed { i, img ->
|
||||
val url = if (img.attr("data-wpfc-original-src").isEmpty())
|
||||
img.attr("abs:src")
|
||||
else
|
||||
img.attr("data-wpfc-original-src")
|
||||
|
||||
Page(i, "", url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ class WPMangaReaderGenerator : ThemeSourceGenerator {
|
|||
SingleLang("TurkToon", "https://turktoon.com", "tr"),
|
||||
SingleLang("Gecenin Lordu", "https://geceninlordu.com", "tr", overrideVersionCode = 1),
|
||||
SingleLang("PMScans", "http://www.pmscans.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("Realm Scans", "https://realmscans.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("Realm Scans", "https://realmscans.com", "en", overrideVersionCode = 2),
|
||||
SingleLang("Skull Scans", "https://www.skullscans.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("Shimada Scans", "https://shimadascans.com", "en"),
|
||||
SingleLang("Shooting Star Scans", "https://shootingstarscans.com", "en", overrideVersionCode = 3),
|
||||
|
|
Loading…
Reference in New Issue