forked from j62/ctbrec
1
0
Fork 0

Catch AssertionError in AccuratePlaylistGenerator

This commit is contained in:
0xb00bface 2021-01-01 20:33:47 +01:00
parent 68e8f3770e
commit 52f10c9fa7
1 changed files with 1 additions and 1 deletions

View File

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