[RU]Lib fix authorization through third-party accounts (#11516)
This commit is contained in:
parent
48ce3fd7f4
commit
a99eb0e6ef
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'HentaiLib'
|
||||
pkgNameSuffix = 'ru.libhentai'
|
||||
extClass = '.LibHentai'
|
||||
extVersionCode = 11
|
||||
extVersionCode = 12
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'MangaLib'
|
||||
pkgNameSuffix = 'ru.libmanga'
|
||||
extClass = '.LibManga'
|
||||
extVersionCode = 67
|
||||
extVersionCode = 68
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue