[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)'
|
extName = 'NewManga(Newbie)'
|
||||||
pkgNameSuffix = 'ru.newbie'
|
pkgNameSuffix = 'ru.newbie'
|
||||||
extClass = '.Newbie'
|
extClass = '.Newbie'
|
||||||
extVersionCode = 17
|
extVersionCode = 18
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -382,11 +382,7 @@ class Newbie : ConfigurableSource, HttpSource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun fetchImageUrl(page: Page): Observable<String> {
|
override fun fetchImageUrl(page: Page): Observable<String> {
|
||||||
val bodyLength = client.newCall(GET(page.url, headers)).execute().body!!.contentLength()
|
return Observable.just(page.url)
|
||||||
return if (bodyLength > 320)
|
|
||||||
Observable.just(page.url)
|
|
||||||
else
|
|
||||||
Observable.just("$baseUrl/error-page/img/logo-fullsize.png")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun imageUrlRequest(page: Page): Request = throw NotImplementedError("Unused")
|
override fun imageUrlRequest(page: Page): Request = throw NotImplementedError("Unused")
|
||||||
|
|
Loading…
Reference in New Issue