Realm Scans: Fix image parsing (#10385)

This commit is contained in:
Troy121 2022-01-09 17:26:45 +01:00 committed by GitHub
parent 5c190c4ce8
commit 28e4219264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

View File

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

View File

@ -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),