Fix 404 errors on GigaViewer. (#8590)
This commit is contained in:
parent
bad58c1cb7
commit
30a7cc3cb4
|
@ -20,19 +20,21 @@ class TonariNoYoungJump : GigaViewer(
|
|||
|
||||
override val publisher: String = "集英社"
|
||||
|
||||
override fun popularMangaSelector(): String = "ul.daily-series li.daily-series-item > a"
|
||||
override fun popularMangaSelector(): String = "ul.series-table-list li.subpage-table-list-item > a"
|
||||
|
||||
override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
|
||||
title = element.select("h4.daily-series-title").text()
|
||||
thumbnail_url = element.select("div.daily-series-thumb img").attr("data-src")
|
||||
title = element.select("h4.title").text()
|
||||
thumbnail_url = element.select("div.subpage-image-wrapper img").attr("data-src")
|
||||
.replace("{width}", "528")
|
||||
.replace("{height}", "528")
|
||||
setUrlWithoutDomain(element.attr("href"))
|
||||
}
|
||||
|
||||
override fun chapterListSelector(): String = "li.episode"
|
||||
|
||||
override fun getCollections(): List<Collection> = listOf(
|
||||
Collection("連載一覧", ""),
|
||||
Collection("読切作品", "oneshot"),
|
||||
Collection("連載終了作品", "finished")
|
||||
Collection("連載中", ""),
|
||||
Collection("読切", "oneshot"),
|
||||
Collection("出張作品", "trial")
|
||||
)
|
||||
}
|
||||
|
|
|
@ -89,7 +89,8 @@ abstract class GigaViewer(
|
|||
}
|
||||
|
||||
val collectionSelected = (filters[0] as CollectionFilter).selected
|
||||
return GET("$baseUrl/series/${collectionSelected.path}", headers)
|
||||
val collectionPath = if (collectionSelected.path.isBlank()) "" else "/" + collectionSelected.path
|
||||
return GET("$baseUrl/series$collectionPath", headers)
|
||||
}
|
||||
|
||||
override fun searchMangaParse(response: Response): MangasPage {
|
||||
|
|
|
@ -9,7 +9,7 @@ class GigaViewerGenerator : ThemeSourceGenerator {
|
|||
|
||||
override val themeClass = "GigaViewer"
|
||||
|
||||
override val baseVersionCode: Int = 2
|
||||
override val baseVersionCode: Int = 3
|
||||
|
||||
override val sources = listOf(
|
||||
SingleLang("Comic Gardo", "https://comic-gardo.com", "ja"),
|
||||
|
|
Loading…
Reference in New Issue