mirror of
https://github.com/beetbox/beets.git
synced 2026-02-10 09:25:42 +01:00
Merge pull request #902 from hkhanna/fix-autoscrub
Fix bug causing autoscrubber to be ineffective
This commit is contained in:
commit
23503e9f09
1 changed files with 3 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue