Add getImageUrl override to EHentai
(cherry picked from commit 2e4f8110908e0f5f61377907e57f13e51790b4dc)
This commit is contained in:
parent
0d89d0184d
commit
087121a5ec
1 changed files with 5 additions and 0 deletions
|
|
@ -806,6 +806,11 @@ class EHentai(
|
|||
override fun pageListParse(response: Response) =
|
||||
throw UnsupportedOperationException("Unused method was called somehow!")
|
||||
|
||||
override suspend fun getImageUrl(page: Page): String {
|
||||
val imageUrlResponse = client.newCall(imageUrlRequest(page)).awaitSuccess()
|
||||
return realImageUrlParse(imageUrlResponse, page)
|
||||
}
|
||||
|
||||
@Deprecated("Use the non-RxJava API instead", replaceWith = ReplaceWith("getImageUrl"))
|
||||
override fun fetchImageUrl(page: Page): Observable<String> {
|
||||
return client.newCall(imageUrlRequest(page))
|
||||
|
|
|
|||
Loading…
Reference in a new issue