mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Better error
This commit is contained in:
parent
9376bb05fa
commit
0b4770188c
2 changed files with 8 additions and 3 deletions
|
@ -706,7 +706,12 @@ class VideoDownload {
|
|||
}
|
||||
else {
|
||||
Logger.i(TAG, "Download $name Sequential");
|
||||
sourceLength = downloadSource_Sequential(client, fileStream, videoUrl, onProgress);
|
||||
try {
|
||||
sourceLength = downloadSource_Sequential(client, fileStream, videoUrl, onProgress);
|
||||
} catch (e: Throwable) {
|
||||
Logger.w(TAG, "Failed to download sequentially (url = $videoUrl)")
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
Logger.i(TAG, "$name downloadSource Finished");
|
||||
|
|
|
@ -51,8 +51,8 @@ class DownloadService : Service() {
|
|||
|
||||
private val _client = ManagedHttpClient(OkHttpClient.Builder()
|
||||
//.proxy(Proxy(Proxy.Type.HTTP, InetSocketAddress(InetAddress.getByName("192.168.1.175"), 8081)))
|
||||
.readTimeout(Duration.ofSeconds(30))
|
||||
.writeTimeout(Duration.ofSeconds(30))
|
||||
.readTimeout(Duration.ofMinutes(30))
|
||||
.writeTimeout(Duration.ofMinutes(30))
|
||||
.connectTimeout(Duration.ofSeconds(30))
|
||||
.callTimeout(Duration.ofMinutes(30)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue