mirror of
https://github.com/openzim/zimit.git
synced 2025-09-23 03:52:16 -04:00
Fix clean_url method name
This commit is contained in:
parent
4d31f8eabb
commit
a4cb27a793
@ -391,7 +391,7 @@ def run(raw_args):
|
|||||||
user_agent += f" {zimit_args.adminEmail}"
|
user_agent += f" {zimit_args.adminEmail}"
|
||||||
|
|
||||||
if url:
|
if url:
|
||||||
url = clean_url(url)
|
url = get_cleaned_url(url)
|
||||||
warc2zim_args.append("--url")
|
warc2zim_args.append("--url")
|
||||||
warc2zim_args.append(url)
|
warc2zim_args.append(url)
|
||||||
|
|
||||||
@ -507,7 +507,7 @@ def run(raw_args):
|
|||||||
return warc2zim(warc2zim_args)
|
return warc2zim(warc2zim_args)
|
||||||
|
|
||||||
|
|
||||||
def clean_url(url: str):
|
def get_cleaned_url(url: str):
|
||||||
parsed_url = urllib.parse.urlparse(url)
|
parsed_url = urllib.parse.urlparse(url)
|
||||||
|
|
||||||
# remove explicit port in URI for default-for-scheme as browsers does it
|
# remove explicit port in URI for default-for-scheme as browsers does it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user