mirror of
https://github.com/beetbox/beets.git
synced 2026-01-10 18:07:00 +01:00
clearart-notify: Send write events when clearing art
For example, this led beets-check to not recompute hashes when doing beet clearart [query]. Further operations on the file(s) would then trigger beets-check to issue integrity warnings.
This commit is contained in:
parent
a000a15803
commit
b6290e2895
1 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ from beets.util import displayable_path, syspath
|
|||
from beets.util.artresizer import ArtResizer
|
||||
from beets import mediafile
|
||||
from beets import config
|
||||
from beets import plugins
|
||||
|
||||
|
||||
def mediafile_image(image_path, maxwidth=None):
|
||||
|
|
@ -205,3 +206,4 @@ def clear(log, lib, query):
|
|||
else:
|
||||
del mf.art
|
||||
mf.save()
|
||||
plugins.send('after_write', item=item, path=item.path)
|
||||
|
|
|
|||
Loading…
Reference in a new issue