fix: instamanhwa duplicated images (#11554)

This commit is contained in:
Alexander Chernov 2022-04-21 20:41:08 +01:00 committed by GitHub
parent 9a11eb1c0d
commit bd75e2f298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.util.asJsoup
@ -33,6 +34,10 @@ class InstaManhwa : Madara(
return GET("$baseUrl/search?s=$query&page=$page", headers)
}
override fun pageListParse(document: Document): List<Page> {
return super.pageListParse(document).distinctBy { it.imageUrl }
}
override fun chapterListRequest(manga: SManga): Request {
return GET("$baseUrl${manga.url}")
}

View File

@ -141,7 +141,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Império Scans", "https://imperioscans.com.br", "pt-BR", className = "ImperioScans", overrideVersionCode = 1),
SingleLang("InfraFandub", "https://infrafandub.xyz", "es"),
SingleLang("Inmortal Scan", "https://manga.mundodrama.site", "es"),
SingleLang("InstaManhwa", "https://www.instamanhwa.com", "en", isNsfw = true),
SingleLang("InstaManhwa", "https://www.instamanhwa.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("IsekaiScan.com", "https://isekaiscan.com", "en", className = "IsekaiScanCom", overrideVersionCode = 4),
SingleLang("IsekaiScan.eu (unoriginal)", "https://isekaiscan.eu", "en", className = "IsekaiscanEu"),
SingleLang("IsekaiScanManga (unoriginal)", "https://isekaiscanmanga.com", "en", className = "IsekaiScanManga", overrideVersionCode = 1),