parent
b4314f5f0b
commit
bb2e8d2cde
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Sussy Scan'
|
extName = 'Sussy Scan'
|
||||||
extClass = '.SussyScan'
|
extClass = '.SussyScan'
|
||||||
extVersionCode = 42
|
extVersionCode = 43
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -149,7 +149,13 @@ class SussyScan : HttpSource() {
|
||||||
|
|
||||||
// ============================= Pages ====================================
|
// ============================= 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> {
|
override fun pageListParse(response: Response): List<Page> {
|
||||||
val dto = response.parseAs<WrapperDto<ChapterPageDto>>().results
|
val dto = response.parseAs<WrapperDto<ChapterPageDto>>().results
|
||||||
|
|
Loading…
Reference in New Issue