mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-06 08:10:17 +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 {
|
else {
|
||||||
Logger.i(TAG, "Download $name Sequential");
|
Logger.i(TAG, "Download $name Sequential");
|
||||||
|
try {
|
||||||
sourceLength = downloadSource_Sequential(client, fileStream, videoUrl, onProgress);
|
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");
|
Logger.i(TAG, "$name downloadSource Finished");
|
||||||
|
|
|
@ -51,8 +51,8 @@ class DownloadService : Service() {
|
||||||
|
|
||||||
private val _client = ManagedHttpClient(OkHttpClient.Builder()
|
private val _client = ManagedHttpClient(OkHttpClient.Builder()
|
||||||
//.proxy(Proxy(Proxy.Type.HTTP, InetSocketAddress(InetAddress.getByName("192.168.1.175"), 8081)))
|
//.proxy(Proxy(Proxy.Type.HTTP, InetSocketAddress(InetAddress.getByName("192.168.1.175"), 8081)))
|
||||||
.readTimeout(Duration.ofSeconds(30))
|
.readTimeout(Duration.ofMinutes(30))
|
||||||
.writeTimeout(Duration.ofSeconds(30))
|
.writeTimeout(Duration.ofMinutes(30))
|
||||||
.connectTimeout(Duration.ofSeconds(30))
|
.connectTimeout(Duration.ofSeconds(30))
|
||||||
.callTimeout(Duration.ofMinutes(30)))
|
.callTimeout(Duration.ofMinutes(30)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue