diff --git a/common/src/main/java/ctbrec/recorder/AccuratePlaylistGenerator.java b/common/src/main/java/ctbrec/recorder/AccuratePlaylistGenerator.java index 2fc0a86f..73abfed2 100644 --- a/common/src/main/java/ctbrec/recorder/AccuratePlaylistGenerator.java +++ b/common/src/main/java/ctbrec/recorder/AccuratePlaylistGenerator.java @@ -55,7 +55,7 @@ public class AccuratePlaylistGenerator extends PlaylistGenerator { .withUri(file.getName()) .withTrackInfo(new TrackInfo(duration, file.getName())) .build()); - } catch (Exception e) { + } catch (Exception | AssertionError e) { LOG.warn("Couldn't determine duration for {}. Skipping this file.", file.getName()); File corruptedFile = new File(directory, file.getName() + ".corrupt"); Files.move(file, corruptedFile);