forked from j62/ctbrec
Spawn FFmpeg process only if playlist request was successful
This commit is contained in:
parent
2956098d2c
commit
b820021aee
|
@ -81,10 +81,11 @@ public class MergedFfmpegHlsDownload extends AbstractHlsDownload {
|
|||
super.startTime = Instant.now();
|
||||
splitRecStartTime = ZonedDateTime.now();
|
||||
|
||||
String segments = getSegmentPlaylistUrl(model);
|
||||
|
||||
Files.createDirectories(targetFile.getParentFile().toPath());
|
||||
startFfmpegProcess(targetFile);
|
||||
|
||||
String segments = getSegmentPlaylistUrl(model);
|
||||
downloadSegments(segments, true);
|
||||
ffmpegThread.join();
|
||||
} catch (ParseException e) {
|
||||
|
|
Loading…
Reference in New Issue