Fix MangaUp covers not loading after expiration date. (#12881)

This commit is contained in:
Alessandro Jean 2022-08-06 18:32:07 -03:00 committed by GitHub
parent 46b6ecf579
commit a0b6b47f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Manga UP!'
pkgNameSuffix = 'all.mangaup'
extClass = '.MangaUpFactory'
extVersionCode = 1
extVersionCode = 2
}
apply from: "$rootDir/common.gradle"

View File

@ -158,7 +158,7 @@ class MangaUp(override val lang: String) : HttpSource() {
val request = chain.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()
.substringAfter("/$TITLE_THUMBNAIL_PATH/")
.substringBefore(".webp")