Skip to content

Commit

Permalink
importhistory: Shorten comment reimport overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
JOJ0 committed Sep 23, 2024
1 parent 0db978e commit 5403f83
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions beetsplug/importhistory.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ def prevent_suggest_removal(self, session, task):
def import_stage(self, _, task):
"""Event handler for albums import finished."""
for item in task.imported_items():
# If import --library is used, this check prevents changing the
# source_path attribute to the path from the music library -
# something which would make this attribute completely useless.
# During reimports (import --library), we prevent overwriting the
# source_path attribute with the path from the music library
if "source_path" in item:
self._log.info(
"Preserving source_path of reimported item {}", item.id
Expand Down

0 comments on commit 5403f83

Please sign in to comment.