fix for plugins not modifying files' tags

This commit is contained in:
Adrian Sampson 2012-09-02 16:00:18 -07:00
parent af2a329477
commit 931a6b636b
2 changed files with 7 additions and 1 deletions

View file

@ -727,6 +727,10 @@ def plugin_stage(config, func):
continue
func(config, task)
# Stage may modify DB, so re-load cached item data.
for item in task.imported_items():
config.lib.load(item)
def manipulate_files(config):
"""A coroutine (pipeline stage) that performs necessary file
manipulations *after* items have been added to the library.
@ -737,7 +741,7 @@ def manipulate_files(config):
if task.should_skip():
continue
# Move/copy files.
# Move/copy/write files.
items = task.imported_items()
task.old_paths = [item.path for item in items] # For deletion.
for item in items:

View file

@ -22,6 +22,8 @@ Changelog
* Add the track mapping dictionary to the ``album_distance`` plugin function.
* Fix an assertion failure when the MusicBrainz main database and search server
disagree.
* Fix a bug that caused the :doc:`/plugins/lastgenre` and other plugins not to
modify files' tags even when they successfully change the database.
.. _Tomahawk resolver: http://beets.radbox.org/blog/tomahawk-resolver.html