mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-09 12:21:57 -04:00
add fallback to check wget output dir with port stripped
This commit is contained in:
parent
ef1a697588
commit
0a25495520
1 changed files with 5 additions and 0 deletions
|
@ -202,4 +202,9 @@ def wget_output_path(link: Link) -> Optional[str]:
|
||||||
if search_dir.is_dir():
|
if search_dir.is_dir():
|
||||||
return domain(link.url).replace(":", "+")
|
return domain(link.url).replace(":", "+")
|
||||||
|
|
||||||
|
# fallback to just the domain dir without port
|
||||||
|
search_dir = Path(link.link_dir) / domain(link.url).split(":", 1)[0]
|
||||||
|
if search_dir.is_dir():
|
||||||
|
return domain(link.url).split(":", 1)[0]
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue