diff --git a/beetsplug/convert.py b/beetsplug/convert.py index 7f0b68913..a15184ea8 100644 --- a/beetsplug/convert.py +++ b/beetsplug/convert.py @@ -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') diff --git a/docs/changelog.rst b/docs/changelog.rst index 036ae4d4a..b5921780e 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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) ------------------------