Fix issue with image filenames

This commit is contained in:
Ronald Farrer 2024-01-31 09:45:17 -08:00 committed by GitHub
parent f4a2a6a6a8
commit 1f63c9138e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,7 +106,12 @@ def getimgs(girls):
album = re.sub('/', '', album) album = re.sub('/', '', album)
for img in urls: for img in urls:
if "cloudfront" in img: 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 # If we reach this we have looped through all the albums, so let's clean things up
cleanup() cleanup()