mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
convert: iterate over the right items (fix #439)
This commit is contained in:
parent
1e737d146b
commit
2481dc244b
2 changed files with 5 additions and 6 deletions
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue