convert: iterate over the right items (fix #439)

This commit is contained in:
Adrian Sampson 2013-10-26 11:08:52 -07:00
parent 1e737d146b
commit 2481dc244b
2 changed files with 5 additions and 6 deletions

View file

@ -300,12 +300,9 @@ class ConvertPlugin(BeetsPlugin):
return [cmd]
def auto_convert(self, config, task):
if self.config['auto'].get():
if not task.is_album:
convert_on_import(config.lib, task.item)
else:
for item in task.items:
convert_on_import(config.lib, item)
if self.config['auto']:
for item in task.imported_items():
convert_on_import(config.lib, item)
@ConvertPlugin.listen('import_task_files')

View file

@ -35,6 +35,8 @@ Little fixes:
* :doc:`/plugins/ftintitle`: Fix an error when the sort artist is missing.
* :doc:`/plugins/echonest_tempo`: The plugin should now match songs more
reliably (i.e., fewer "no tempo found" messages). Thanks to Peter Schnebel.
* :doc:`/plugins/convert`: Fix an "Item has no library" error when using the
``auto`` config option.
1.3.1 (October 12, 2013)
------------------------