mirror of
https://github.com/beetbox/beets.git
synced 2026-01-29 11:35:27 +01:00
Simplified conditional test, now w/o function call
This commit is contained in:
parent
ece99bb330
commit
ba4430c0bf
1 changed files with 1 additions and 1 deletions
|
|
@ -754,7 +754,7 @@ class ImportTask(BaseImportTask):
|
|||
self.record_replaced(lib)
|
||||
self.remove_replaced(lib)
|
||||
self.album = lib.add_album(self.imported_items())
|
||||
if 'data_source' in self.imported_items()[0].keys():
|
||||
if 'data_source' in self.imported_items()[0]:
|
||||
self.album.data_source = self.imported_items()[0].data_source
|
||||
self.reimport_metadata(lib)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue