Fix arena scans duplicate pages (#16223)

* Create ArenaScans.kt

Added 'Arena 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 noscript img. This results in returning one image per img tag.

* Update MangaThemesiaGenerator.kt
This commit is contained in:
Fathi Ahmed 2023-04-30 02:26:55 +03:00 committed by GitHub
parent 8062d2fac5
commit 406e2ddfb5
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.arenascans
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
class ArenaScans : MangaThemesia("Arena Scans", "https://arenascans.net", "en") {
override val pageSelector = "div#readerarea img[data-src]"
}

View File

@ -20,7 +20,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
MultiLang("Miau Scan", "https://miauscan.com", listOf("es", "pt-BR")), MultiLang("Miau Scan", "https://miauscan.com", listOf("es", "pt-BR")),
SingleLang("Animated Glitched Scans", "https://anigliscans.com", "en"), SingleLang("Animated Glitched Scans", "https://anigliscans.com", "en"),
SingleLang("Arcane scan", "https://arcanescan.fr", "fr"), SingleLang("Arcane scan", "https://arcanescan.fr", "fr"),
SingleLang("Arena Scans", "https://arenascans.net", "en"), SingleLang("Arena Scans", "https://arenascans.net", "en", overrideVersionCode = 1),
SingleLang("Azure Scans", "https://azuremanga.com", "en", overrideVersionCode = 1), SingleLang("Azure Scans", "https://azuremanga.com", "en", overrideVersionCode = 1),
SingleLang("Boosei", "https://boosei.net", "id", overrideVersionCode = 2), SingleLang("Boosei", "https://boosei.net", "id", overrideVersionCode = 2),
SingleLang("Babel Wuxia", "https://babelwuxia.com", "en", overrideVersionCode = 1), SingleLang("Babel Wuxia", "https://babelwuxia.com", "en", overrideVersionCode = 1),