[RU]Lib fix authorization through third-party accounts (#11516)

This commit is contained in:
Ejan 2022-04-19 00:46:14 +05:00 committed by GitHub
parent 48ce3fd7f4
commit a99eb0e6ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'HentaiLib'
pkgNameSuffix = 'ru.libhentai'
extClass = '.LibHentai'
extVersionCode = 11
extVersionCode = 12
isNsfw = true
}

View File

@ -63,6 +63,8 @@ class LibHentai : ConfigurableSource, HttpSource() {
override val baseUrl = "https://hentailib.me"
override fun headersBuilder() = Headers.Builder().apply {
//User-Agent required for authorization through third-party accounts (mobile version for correct display in WebView)
add("User-Agent", "Mozilla/5.0 (Linux; Android 10; SM-G980F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36")
add("Accept", "image/webp,*/*;q=0.8")
add("Referer", baseUrl)
}

View File

@ -6,7 +6,7 @@ ext {
extName = 'MangaLib'
pkgNameSuffix = 'ru.libmanga'
extClass = '.LibManga'
extVersionCode = 67
extVersionCode = 68
}
dependencies {

View File

@ -84,6 +84,8 @@ class LibManga : ConfigurableSource, HttpSource() {
override val baseUrl: String = domain.toString()
override fun headersBuilder() = Headers.Builder().apply {
//User-Agent required for authorization through third-party accounts (mobile version for correct display in WebView)
add("User-Agent", "Mozilla/5.0 (Linux; Android 10; SM-G980F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36")
add("Accept", "image/webp,*/*;q=0.8")
add("Referer", baseUrl)
}