Skip to content

Commit

Permalink
fix(export): Custom modified dropped paths
Browse files Browse the repository at this point in the history
  • Loading branch information
rpatterson committed Aug 18, 2024
1 parent c3a4b3e commit 69856c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/prunerr/downloaditem.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,14 @@ def link_imported_files(
need_verify = True

# Hard link imported files into the download item's location:
file_relatives = set(item_file.relative for item_file in self.files)
for imported_relative, dropped_data in imported_relatives.items():
if dropped_data["droppedRel"] not in file_relatives: # pragma: no cover
logger.error(
"Dropped path doesn't match download item file: %s",
dropped_data["droppedRel"],
)
continue
if self.DOWNLOAD_DIR_FIELD not in self._fields: # pragma: no cover
logger.debug(
"Missing download dir field, updating: %r",
Expand Down

0 comments on commit 69856c7

Please sign in to comment.