forked from j62/ctbrec
1
0
Fork 0

Improve exception handling

This commit is contained in:
0xb00bface 2020-07-18 19:05:09 +02:00
parent b1d5d959d4
commit 6ca0e61f1f
1 changed files with 4 additions and 0 deletions

View File

@ -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;