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())
|
.withUri(file.getName())
|
||||||
.withTrackInfo(new TrackInfo(duration, file.getName()))
|
.withTrackInfo(new TrackInfo(duration, file.getName()))
|
||||||
.build());
|
.build());
|
||||||
} catch (Exception e) {
|
} catch (Exception | AssertionError e) {
|
||||||
LOG.warn("Couldn't determine duration for {}. Skipping this file.", file.getName());
|
LOG.warn("Couldn't determine duration for {}. Skipping this file.", file.getName());
|
||||||
File corruptedFile = new File(directory, file.getName() + ".corrupt");
|
File corruptedFile = new File(directory, file.getName() + ".corrupt");
|
||||||
Files.move(file, corruptedFile);
|
Files.move(file, corruptedFile);
|
||||||
|
|
Loading…
Reference in New Issue