From 6a0a880475b31131f2a3f248c85effc91967fe25 Mon Sep 17 00:00:00 2001 From: h-hyuuga <83582211+h-hyuuga@users.noreply.github.com> Date: Tue, 11 May 2021 11:39:21 -0400 Subject: [PATCH] Fix infinite recursion in GSNation extension (#6966) --- multisrc/overrides/wpmangareader/gsnation/src/GSNation.kt | 8 ++++---- .../multisrc/wpmangareader/WPMangaReaderGenerator.kt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/multisrc/overrides/wpmangareader/gsnation/src/GSNation.kt b/multisrc/overrides/wpmangareader/gsnation/src/GSNation.kt index 92899f13a..76777bda2 100644 --- a/multisrc/overrides/wpmangareader/gsnation/src/GSNation.kt +++ b/multisrc/overrides/wpmangareader/gsnation/src/GSNation.kt @@ -11,8 +11,8 @@ import java.util.Locale class GSNation : WPMangaReader("GS Nation", "http://gs-nation.fr", "fr", dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale.FRANCE)) { // remove the novels from the response - override fun popularMangaParse(response: Response): MangasPage { - val mangasPage = super.popularMangaParse(response) + override fun searchMangaParse(response: Response): MangasPage { + val mangasPage = super.searchMangaParse(response) return MangasPage( mangasPage.mangas @@ -22,9 +22,9 @@ class GSNation : WPMangaReader("GS Nation", "http://gs-nation.fr", "fr", dateFor ) } - override fun latestUpdatesParse(response: Response): MangasPage = popularMangaParse(response) + override fun latestUpdatesParse(response: Response): MangasPage = searchMangaParse(response) - override fun searchMangaParse(response: Response): MangasPage = popularMangaParse(response) + override fun popularMangaParse(response: Response): MangasPage = searchMangaParse(response) override fun mangaDetailsParse(document: Document) = SManga.create().apply { author = document.select(".imptdt:contains(auteur) i").text() diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt index c4a43b26b..d6a91942b 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt @@ -22,7 +22,7 @@ class WPMangaReaderGenerator : ThemeSourceGenerator { SingleLang("Flame Scans", "http://flamescans.org", "en", overrideVersionCode = 1), SingleLang("A Pair of 2+", "https://pairof2.com", "en", className = "APairOf2"), SingleLang("PMScans", "https://reader.pmscans.com", "en"), - SingleLang("GS Nation", "https://gs-nation.fr", "fr") + SingleLang("GS Nation", "https://gs-nation.fr", "fr", overrideVersionCode = 1) ) companion object {