forked from j62/ctbrec
Merge branch 'master' into dev
This commit is contained in:
commit
ab9f3c7df1
|
@ -532,7 +532,7 @@ public class LocalRecorder implements Recorder {
|
|||
boolean deletedAllFiles = true;
|
||||
for (File file : files) {
|
||||
try {
|
||||
LOG.debug("Deleting {}", file.getAbsolutePath());
|
||||
LOG.trace("Deleting {}", file.getAbsolutePath());
|
||||
Files.delete(file.toPath());
|
||||
} catch (Exception e) {
|
||||
deletedAllFiles = false;
|
||||
|
@ -542,9 +542,6 @@ public class LocalRecorder implements Recorder {
|
|||
|
||||
if (deletedAllFiles) {
|
||||
LOG.debug("All files deleted");
|
||||
for (String file : directory.list()) {
|
||||
LOG.debug(file);
|
||||
}
|
||||
if (directory.list().length == 0) {
|
||||
LOG.debug("Deleting directory {}", directory);
|
||||
boolean deleted = directory.delete();
|
||||
|
|
|
@ -109,7 +109,7 @@ public class HlsDownload extends AbstractHlsDownload {
|
|||
throw new IOException("Couldn't determine segments uri");
|
||||
}
|
||||
} catch(ParseException e) {
|
||||
throw new IOException("Couldn't parse stream information", e);
|
||||
throw new IOException("Couldn't parse HLS playlist:\n" + e.getInput(), e);
|
||||
} catch(PlaylistException e) {
|
||||
throw new IOException("Couldn't parse HLS playlist", e);
|
||||
} catch(EOFException e) {
|
||||
|
|
Loading…
Reference in New Issue