Skip to content

Commit

Permalink
chore: update file download rules
Browse files Browse the repository at this point in the history
  • Loading branch information
shengchenyang committed Jan 29, 2024
1 parent 30bae68 commit f504c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ayugespidertools/scraper/pipelines/download/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ async def process_item(self, item, spider):
if ReuseOperation.is_namedtuple_instance(judge_item):
for key, value in file_url_keys.items():
await files_download_by_scrapy(
spider, self.file_path, value.key_value, item, f"_{key}"
spider, self.file_path, value.key_value, item, f"{key}_local"
)
else:
for key, value in file_url_keys.items():
await files_download_by_scrapy(
spider, self.file_path, value, item, f"_{key}", "normal"
spider, self.file_path, value, item, f"{key}_local", "normal"
)

return item

0 comments on commit f504c45

Please sign in to comment.