Fix bug causing autoscrubber to be ineffective

This commit is contained in:
Harry Khanna 2014-08-18 19:12:35 -04:00
parent bf553eae34
commit 1b61b97e7b

View file

@ -392,14 +392,15 @@ class Item(LibModel):
path = self.path
else:
path = normpath(path)
plugins.send('write', item=self, path=path)
try:
mediafile = MediaFile(syspath(path),
id3v23=beets.config['id3v23'].get(bool))
except (OSError, IOError) as exc:
raise ReadError(self.path, exc)
plugins.send('write', item=self, path=path)
mediafile.update(self)
try:
mediafile.save()