Skip to content

Commit

Permalink
Update comments for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
nohzafk committed Nov 7, 2023
1 parent 67ef7b6 commit 2a2f591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shot_scraper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def filename_for_url(url, ext=None, file_exists=file_exists_never):
ext = ext or "png"
bits = urllib.parse.urlparse(url)
filename = (bits.netloc + bits.path).replace(".", "-").replace("/", "-").rstrip("-")
# Remove any characters outside of the allowed range
# Remove any characters outside the allowed range
base_filename = disallowed_re.sub("", filename).lstrip("-")
filename = base_filename + "." + ext
suffix = 0
Expand Down

0 comments on commit 2a2f591

Please sign in to comment.