Error handling

pull/11817/head
7x11x13 2 months ago
parent e399a564fa
commit 57f6ae4342

@ -826,6 +826,8 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
self.to_screen(f'Adding metadata to "{filename}"')
try:
f = mutagen.File(filename)
if f is None:
raise TypeError(f'Mutagen unable to determine type of file: {info["ext"]}')
self._assemble_metadata(f, metadata)
f.save()
except Exception as err:

Loading…
Cancel
Save