From 1f63c9138e7ebf1f30c17e563efdbd40004efd99 Mon Sep 17 00:00:00 2001 From: Ronald Farrer Date: Wed, 31 Jan 2024 09:45:17 -0800 Subject: [PATCH] Fix issue with image filenames --- sgspider.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sgspider.py b/sgspider.py index cebce11..beb12d8 100755 --- a/sgspider.py +++ b/sgspider.py @@ -106,7 +106,12 @@ def getimgs(girls): album = re.sub('/', '', album) for img in urls: if "cloudfront" in img: - dlimgs(name, album, img) + if '?v' in img: + new_img = img.split('?v')[0] + dlimgs(name, album, new_img) + else: + dlimgs(name, album, img) + #dlimgs(name, album, img) # If we reach this we have looped through all the albums, so let's clean things up cleanup()