Skip to content

Commit

Permalink
Merge pull request #51 from RyouMon/refactor-pixiv
Browse files Browse the repository at this point in the history
refactor: doesn't write iptc when file status is "uptodate"
  • Loading branch information
RyouMon authored Jan 11, 2024
2 parents 1352b3b + 75a9354 commit eb0a502
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/favorites_crawler/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def item_completed(self, results, item, info):
for success, result in results:
if not (success and item.tags):
continue
if result.get('status') == 'uptodate':
continue
path = item.get_filepath(result['url'], info.spider)
try:
msg = self.exif_tool.set_tags(
Expand Down

0 comments on commit eb0a502

Please sign in to comment.