forked from j62/ctbrec
1
0
Fork 0

Merge branch 'master' into dev

This commit is contained in:
0xboobface 2018-09-25 15:02:00 +02:00
commit ab9f3c7df1
2 changed files with 2 additions and 5 deletions

View File

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

View File

@ -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) {