Merge pull request #902 from hkhanna/fix-autoscrub

Fix bug causing autoscrubber to be ineffective
This commit is contained in:
Adrian Sampson 2014-08-18 17:16:53 -07:00
commit 23503e9f09

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()