From ca1581996d7163d3615a6ee2814c9324465e40a3 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 24 Jul 2012 14:56:14 -0700 Subject: [PATCH] fix early call to imported_items in chroma --- beetsplug/chroma.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beetsplug/chroma.py b/beetsplug/chroma.py index 7831a7ffc..9b3229dd1 100644 --- a/beetsplug/chroma.py +++ b/beetsplug/chroma.py @@ -1,5 +1,5 @@ # This file is part of beets. -# Copyright 2011, Adrian Sampson. +# Copyright 2012, Adrian Sampson. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -170,7 +170,8 @@ def fingerprint_task(config=None, task=None): """Fingerprint each item in the task for later use during the autotagging candidate search. """ - for item in task.imported_items(): + items = task.items if task.is_album else [task.item] + for item in items: acoustid_match(item.path) @AcoustidPlugin.listen('import_task_apply')