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:
nath@home 2015-08-08 21:44:50 +02:00
parent a000a15803
commit b6290e2895

View file

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