mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix: wget_output_path failing on some extractors. Add a new condition
This commit is contained in:
parent
31e6fae7c3
commit
e9e4adfc34
1 changed files with 4 additions and 0 deletions
|
@ -180,5 +180,9 @@ def wget_output_path(link: Link) -> Optional[str]:
|
|||
|
||||
if str(search_dir) == link.link_dir:
|
||||
break
|
||||
|
||||
search_dir = Path(link.link_dir) / domain(link.url).replace(":", "+") / urldecode(full_path)
|
||||
if not search_dir.is_dir():
|
||||
return str(search_dir.relative_to(link.link_dir))
|
||||
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue