ManhwaWeb: Add header fix some covers (#4373)

add header, some covers did not load
This commit is contained in:
Yush0DAN 2024-08-01 02:08:11 -06:00 committed by GitHub
parent 5b71368240
commit fc74e1dc21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'ManhwaWeb'
extClass = '.ManhwaWeb'
extVersionCode = 4
extVersionCode = 5
isNsfw = true
}

View File

@ -38,6 +38,7 @@ class ManhwaWeb : HttpSource() {
override fun headersBuilder(): Headers.Builder = super.headersBuilder()
.add("Referer", "$baseUrl/")
.add("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8")
override fun popularMangaRequest(page: Int): Request = GET("$apiUrl/manhwa/nuevos", headers)