[RU]Newmanga remove height limiter (slow load - no plug error-page) (#14549)
This commit is contained in:
parent
2f24d72b50
commit
26beb51f44
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'NewManga(Newbie)'
|
||||
pkgNameSuffix = 'ru.newbie'
|
||||
extClass = '.Newbie'
|
||||
extVersionCode = 17
|
||||
extVersionCode = 18
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue