1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-21 13:52:30 +02:00

fix: Wget issue when calculating output path

This commit is contained in:
Cristian
2021-01-19 10:59:50 -05:00
parent 891dd3b8a9
commit ab311d86e1

View File

@@ -180,7 +180,7 @@ def wget_output_path(snapshot: Model) -> Optional[str]:
# Move up one directory level
search_dir = search_dir.parent
if str(search_dir) == snapshot.snapshot_dir:
if search_dir == snapshot.snapshot_dir:
break
search_dir = Path(snapshot.snapshot_dir) / domain(snapshot.url).replace(":", "+") / urldecode(full_path)