mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 10:34:09 +01:00
Clear IDs in query stage
This commit is contained in:
parent
4c0554a6c5
commit
07ace040fd
1 changed files with 3 additions and 6 deletions
|
|
@ -912,6 +912,9 @@ def query_tasks(session):
|
|||
log.debug('yielding album %i: %s - %s' %
|
||||
(album.id, album.albumartist, album.album))
|
||||
items = list(album.items())
|
||||
for item in items:
|
||||
item.id = None
|
||||
item.album_id = None
|
||||
yield ImportTask(None, [album.item_dir()], items)
|
||||
|
||||
|
||||
|
|
@ -1035,12 +1038,6 @@ def apply_choices(session):
|
|||
if task.skip:
|
||||
continue
|
||||
|
||||
items = task.imported_items()
|
||||
# Clear IDs in case the items are being re-tagged.
|
||||
for item in items:
|
||||
item.id = None
|
||||
item.album_id = None
|
||||
|
||||
# Change metadata.
|
||||
if task.apply:
|
||||
task.apply_metadata()
|
||||
|
|
|
|||
Loading…
Reference in a new issue