mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-25 14:19:27 +03:00
increase call timeout to 30 minutes for anime downloads
This commit is contained in:
parent
57cdb870cc
commit
4c3ee0258e
1 changed files with 5 additions and 1 deletions
|
@ -19,6 +19,7 @@ import uy.kohesive.injekt.injectLazy
|
|||
import java.net.URI
|
||||
import java.net.URISyntaxException
|
||||
import java.security.MessageDigest
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
/**
|
||||
* A simple implementation for sources from a website.
|
||||
|
@ -307,7 +308,10 @@ abstract class AnimeHttpSource : AnimeCatalogueSource {
|
|||
* @param video the page whose source image has to be downloaded.
|
||||
*/
|
||||
fun fetchVideo(video: Video): Observable<Response> {
|
||||
return client.newCachelessCallWithProgress(videoRequest(video, video.totalBytesDownloaded), video)
|
||||
val animeDownloadClient = client.newBuilder()
|
||||
.callTimeout(30, TimeUnit.MINUTES)
|
||||
.build()
|
||||
return animeDownloadClient.newCachelessCallWithProgress(videoRequest(video, video.totalBytesDownloaded), video)
|
||||
.asObservableSuccess()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue