diff --git a/source-api/src/main/java/eu/kanade/tachiyomi/animesource/online/AnimeHttpSource.kt b/source-api/src/main/java/eu/kanade/tachiyomi/animesource/online/AnimeHttpSource.kt index c6f24dba1..8c41851d2 100644 --- a/source-api/src/main/java/eu/kanade/tachiyomi/animesource/online/AnimeHttpSource.kt +++ b/source-api/src/main/java/eu/kanade/tachiyomi/animesource/online/AnimeHttpSource.kt @@ -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 { - 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() }