From ab311d86e1eca8b33cb350a89340e35b8b352c4a Mon Sep 17 00:00:00 2001 From: Cristian Date: Tue, 19 Jan 2021 10:59:50 -0500 Subject: [PATCH] fix: Wget issue when calculating output path --- archivebox/extractors/wget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/extractors/wget.py b/archivebox/extractors/wget.py index 29f0ff76..0f011064 100644 --- a/archivebox/extractors/wget.py +++ b/archivebox/extractors/wget.py @@ -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)