
Fix for #14352 #14266 Closes #14352 Closes #14266 Added 'Cosmic Scans' src override for img selector to mitigate duplicate pages Image selector was returning 2 images for each image (img tag and the noscript img tag). So, added attribute [data-src] which is only available on img under readerarea and not for noscrpt img. This results in returning one image per img tag. Checklist: [-] Updated extVersionCode value in build.gradle for individual extensions [x] Updated overrideVersionCode or baseVersionCode as needed for all multisrc extensions [x] Referenced all related issues in the PR body (e.g. "Closes #xyz") [-] Added the isNsfw = true flag in build.gradle when appropriate [x] Have not changed source names [-] Have explicitly kept the id if a source's name or language were changed [x] Have tested the modifications by compiling and running the extension through Android Studio
8 lines
269 B
Kotlin
8 lines
269 B
Kotlin
package eu.kanade.tachiyomi.extension.en.cosmicscans
|
|
|
|
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
|
|
|
class CosmicScans : MangaThemesia("Cosmic Scans", "https://cosmicscans.com", "en") {
|
|
override val pageSelector = "div#readerarea img[data-src]"
|
|
}
|