[RU]Newmanga remove height limiter (slow load - no plug error-page) (#14549)

This commit is contained in:
Eshlender 2022-12-15 16:47:01 +05:00 committed by GitHub
parent 2f24d72b50
commit 26beb51f44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'NewManga(Newbie)'
pkgNameSuffix = 'ru.newbie'
extClass = '.Newbie'
extVersionCode = 17
extVersionCode = 18
}
dependencies {

View File

@ -382,11 +382,7 @@ class Newbie : ConfigurableSource, HttpSource() {
}
override fun fetchImageUrl(page: Page): Observable<String> {
val bodyLength = client.newCall(GET(page.url, headers)).execute().body!!.contentLength()
return if (bodyLength > 320)
Observable.just(page.url)
else
Observable.just("$baseUrl/error-page/img/logo-fullsize.png")
return Observable.just(page.url)
}
override fun imageUrlRequest(page: Page): Request = throw NotImplementedError("Unused")