forked from j62/ctbrec
Improve exception handling
This commit is contained in:
parent
b1d5d959d4
commit
6ca0e61f1f
|
@ -6,6 +6,7 @@ import java.io.FileOutputStream;
|
|||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.nio.file.Files;
|
||||
import java.time.Duration;
|
||||
|
@ -229,6 +230,9 @@ public class MergedFfmpegHlsDownload extends AbstractHlsDownload {
|
|||
LOG.info("Unexpected error while downloading {}", model, e);
|
||||
}
|
||||
running = false;
|
||||
} catch (MalformedURLException e) {
|
||||
LOG.info("Malformed URL {} - {}", model, segmentPlaylistUri, e);
|
||||
running = false;
|
||||
} catch (Exception e) {
|
||||
LOG.info("Unexpected error while downloading {}", model, e);
|
||||
running = false;
|
||||
|
|
Loading…
Reference in New Issue