From 513499dc5d0c39727c70d6e50f7fdfbbffc45211 Mon Sep 17 00:00:00 2001 From: /XNL-h4ck3r Date: Tue, 31 Dec 2024 17:13:27 +0000 Subject: [PATCH] v4.8 - see CHANGELOG.md for details --- CHANGELOG.md | 6 ++++++ README.md | 2 +- waymore/__init__.py | 2 +- waymore/waymore.py | 3 +++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53a3baa..b05dc48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## Changelog +- v4.8 + + - Changed + + - BUG FIX: When downloading responses and creating the file name, sometimes the file extension is incorrectly derived and has `/` in it, e.g. `5146045725697.well-known/openid-configuration`, and this causes the writing of the file to fail. If the derived extension does contain `/` then it will be reset to blank, and determined a different way. + - v4.7 - New diff --git a/README.md b/README.md index 83e4642..3539515 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
-## About - v4.7 +## About - v4.8 The idea behind **waymore** is to find even more links from the Wayback Machine than other existing tools. diff --git a/waymore/__init__.py b/waymore/__init__.py index 7ca1278..25f871a 100644 --- a/waymore/__init__.py +++ b/waymore/__init__.py @@ -1 +1 @@ -__version__="4.7" \ No newline at end of file +__version__="4.8" \ No newline at end of file diff --git a/waymore/waymore.py b/waymore/waymore.py index c897e5a..60dd360 100644 --- a/waymore/waymore.py +++ b/waymore/waymore.py @@ -869,6 +869,9 @@ def processArchiveUrl(url): parsed = urlparse(targetUrl.strip()) path = parsed.path extension = path[path.rindex('.')+1:] + # If there is a / in the extension then it's not the extension at all, so reset to blank + if '/' in extension: + extension = '' except: pass