Skip to content

Commit

Permalink
Minor: Normalize filename when exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc-st committed Jan 18, 2025
1 parent 524c165 commit 3f69be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion humble.py
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ def build_tmp_file(export_date, file_ext, lang, url):
url_str = tldextract.extract(URL)
url_sub = f"_{url_str.subdomain}." if url_str.subdomain else '_'
url_prt = f"_{url.port}_" if url.port is not None else '_'
return f"{str_hum}{url.scheme}{url_sub}{url_str.domain}_{url_str.suffix}\
return f"{str_hum}{url.scheme}{url_sub}{url_str.domain}.{url_str.suffix}\
{url_prt}{export_date}{lang}{file_ext}"


Expand Down

0 comments on commit 3f69be9

Please sign in to comment.