SussyScan: Fix page loading (#6961)

Fix page loading
This commit is contained in:
Chopper 2025-01-03 14:13:02 -03:00 committed by Draff
parent b4314f5f0b
commit bb2e8d2cde
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Sussy Scan'
extClass = '.SussyScan'
extVersionCode = 42
extVersionCode = 43
isNsfw = true
}

View File

@ -149,7 +149,13 @@ class SussyScan : HttpSource() {
// ============================= Pages ====================================
override fun pageListRequest(chapter: SChapter) = GET("$apiUrl${chapter.url}", headers)
override fun pageListRequest(chapter: SChapter): Request {
val pageHeaders = headers.newBuilder()
.set("Accept", "application/json, text/plain, */*")
.set("Accept-Language", "pt-br,pt;q=0.9,en-us;q=0.8,en;q=0.7")
.build()
return GET("$apiUrl${chapter.url}", pageHeaders)
}
override fun pageListParse(response: Response): List<Page> {
val dto = response.parseAs<WrapperDto<ChapterPageDto>>().results