Commit 43804de4 authored by jvoisin's avatar jvoisin

Fix mutagen's behaviour on file without metadata block

parent 70ef290a
......@@ -28,7 +28,10 @@ class MutagenStripper(parser.GenericParser):
if self.backup:
self.create_backup_copy()
self.mfile.delete()
self.mfile.save()
try: # mutagen will choke on files without a metadata block
self.mfile.save()
except ValueError:
pass
return True
def get_meta(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment