Fix MangaUp covers not loading after expiration date. (#12881)
This commit is contained in:
parent
46b6ecf579
commit
a0b6b47f71
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'Manga UP!'
|
extName = 'Manga UP!'
|
||||||
pkgNameSuffix = 'all.mangaup'
|
pkgNameSuffix = 'all.mangaup'
|
||||||
extClass = '.MangaUpFactory'
|
extClass = '.MangaUpFactory'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -158,7 +158,7 @@ class MangaUp(override val lang: String) : HttpSource() {
|
||||||
val request = chain.request()
|
val request = chain.request()
|
||||||
val response = chain.proceed(request)
|
val response = chain.proceed(request)
|
||||||
|
|
||||||
if (response.code == 401 && request.url.toString().contains(TITLE_THUMBNAIL_PATH)) {
|
if (response.code == 410 && request.url.toString().contains(TITLE_THUMBNAIL_PATH)) {
|
||||||
val titleId = request.url.toString()
|
val titleId = request.url.toString()
|
||||||
.substringAfter("/$TITLE_THUMBNAIL_PATH/")
|
.substringAfter("/$TITLE_THUMBNAIL_PATH/")
|
||||||
.substringBefore(".webp")
|
.substringBefore(".webp")
|
||||||
|
|
Loading…
Reference in New Issue