[Ru] Mangalib. Fix 403 image without referer (#5105)

[Ru] Mangalib. Fix 403 image without referer
This commit is contained in:
Pavka 2020-12-12 17:22:23 +03:00 committed by GitHub
parent 6661e1c64d
commit f35e1e5ab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaLib'
pkgNameSuffix = 'ru.libmanga'
extClass = '.LibManga'
extVersionCode = 24
extVersionCode = 25
libVersion = '1.2'
}

View File

@ -56,6 +56,7 @@ class LibManga : ConfigurableSource, HttpSource() {
override fun headersBuilder() = Headers.Builder().apply {
add("User-Agent", "Mozilla/5.0 (Windows NT 6.3; WOW64)")
add("Accept", "image/webp,*/*;q=0.8")
add("Referer", baseUrl)
}
private val jsonParser = JsonParser()