1
0
Fork 0
mirror of synced 2024-06-23 08:30:29 +12:00

fix: wget_output_path failing on some extractors. Add a new condition

This commit is contained in:
Cristian 2021-01-07 09:07:29 -05:00
parent 31e6fae7c3
commit e9e4adfc34

View file

@ -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