Fix infinite recursion in GSNation extension (#6966)
This commit is contained in:
parent
02d712be26
commit
6a0a880475
|
@ -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()
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue