forked from j62/ctbrec
Catch AssertionError in AccuratePlaylistGenerator
This commit is contained in:
parent
68e8f3770e
commit
52f10c9fa7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue