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
This commit is contained in:
jamesnorritz 2022-11-26 05:47:45 +05:30 committed by GitHub
parent 62da5c3b97
commit b369252c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
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]"
}

View File

@ -26,7 +26,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("Boosei", "https://boosei.net", "id", overrideVersionCode = 2), SingleLang("Boosei", "https://boosei.net", "id", overrideVersionCode = 2),
SingleLang("Clayrer", "https://clayrer.net", "es"), SingleLang("Clayrer", "https://clayrer.net", "es"),
SingleLang("Constellar Scans", "https://constellarscans.com", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Constellar Scans", "https://constellarscans.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Cosmic Scans", "https://cosmicscans.com", "en"), SingleLang("Cosmic Scans", "https://cosmicscans.com", "en", overrideVersionCode = 1),
SingleLang("Dojing.net", "https://dojing.net", "id", isNsfw = true, className = "DojingNet"), SingleLang("Dojing.net", "https://dojing.net", "id", isNsfw = true, className = "DojingNet"),
SingleLang("DuniaKomik.id", "https://duniakomik.id", "id", className = "DuniaKomikId"), SingleLang("DuniaKomik.id", "https://duniakomik.id", "id", className = "DuniaKomikId"),
SingleLang("FlameScans.fr", "https://flamescans.fr", "fr", className = "FlameScansFR"), SingleLang("FlameScans.fr", "https://flamescans.fr", "fr", className = "FlameScansFR"),