Skip to content

Commit

Permalink
fix: ignore .com.google.Chrome.* files in download dir
Browse files Browse the repository at this point in the history
seems these now get written during in-progress downloads, confusing
scrape_lib's detection of the download being finished and resulting in
truncated downloads.
  • Loading branch information
jktomer committed Feb 13, 2024
1 parent 196faef commit 8dc2397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finance_dl/scrape_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def get_downloaded_file(self):
partial_names = []
other_names = []
for name in names:
if name.endswith('.part') or name.endswith('.crdownload'):
if name.endswith('.part') or name.endswith('.crdownload') or name.startswith('.com.google.Chrome'):
partial_names.append(name)
else:
other_names.append(name)
Expand Down

0 comments on commit 8dc2397

Please sign in to comment.