Fix infinite recursion in GSNation extension (#6966)

This commit is contained in:
h-hyuuga 2021-05-11 11:39:21 -04:00 committed by GitHub
parent 02d712be26
commit 6a0a880475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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)) { class GSNation : WPMangaReader("GS Nation", "http://gs-nation.fr", "fr", dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale.FRANCE)) {
// remove the novels from the response // remove the novels from the response
override fun popularMangaParse(response: Response): MangasPage { override fun searchMangaParse(response: Response): MangasPage {
val mangasPage = super.popularMangaParse(response) val mangasPage = super.searchMangaParse(response)
return MangasPage( return MangasPage(
mangasPage.mangas 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 { override fun mangaDetailsParse(document: Document) = SManga.create().apply {
author = document.select(".imptdt:contains(auteur) i").text() author = document.select(".imptdt:contains(auteur) i").text()

View File

@ -22,7 +22,7 @@ class WPMangaReaderGenerator : ThemeSourceGenerator {
SingleLang("Flame Scans", "http://flamescans.org", "en", overrideVersionCode = 1), SingleLang("Flame Scans", "http://flamescans.org", "en", overrideVersionCode = 1),
SingleLang("A Pair of 2+", "https://pairof2.com", "en", className = "APairOf2"), SingleLang("A Pair of 2+", "https://pairof2.com", "en", className = "APairOf2"),
SingleLang("PMScans", "https://reader.pmscans.com", "en"), 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 { companion object {