Fix issue with image filenames
This commit is contained in:
parent
f4a2a6a6a8
commit
1f63c9138e
1 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue