Weeb Central: use correct chapter URL for WebView (#6370)

This commit is contained in:
Vetle Ledaal 2024-11-29 03:31:26 +01:00 committed by Draff
parent 1e09043247
commit 7e0c565a4d
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Weeb Central' extName = 'Weeb Central'
extClass = '.WeebCentral' extClass = '.WeebCentral'
extVersionCode = 5 extVersionCode = 6
isNsfw = true isNsfw = true
} }

View File

@ -164,6 +164,10 @@ class WeebCentral : ParsedHttpSource() {
return GET(newUrl, headers) return GET(newUrl, headers)
} }
override fun getChapterUrl(chapter: SChapter): String {
return baseUrl + chapter.url
}
override fun pageListParse(document: Document): List<Page> { override fun pageListParse(document: Document): List<Page> {
return document.select("section[x-data~=scroll] > img").mapIndexed { index, element -> return document.select("section[x-data~=scroll] > img").mapIndexed { index, element ->
Page(index, imageUrl = element.attr("abs:src")) Page(index, imageUrl = element.attr("abs:src"))