mirror of
https://github.com/beetbox/beets.git
synced 2026-01-16 05:02:28 +01:00
importsource: fix potential prevent_suggest_removal crash
This commit is contained in:
parent
c1904b1f69
commit
0230352da1
1 changed files with 2 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ class ImportSourcePlugin(BeetsPlugin):
|
|||
)
|
||||
|
||||
def prevent_suggest_removal(self, session, task):
|
||||
if task.skip:
|
||||
return
|
||||
for item in task.imported_items():
|
||||
if "mb_albumid" in item:
|
||||
self.stop_suggestions_for_albums.add(item.mb_albumid)
|
||||
|
|
|
|||
Loading…
Reference in a new issue