Fix infinite images loop

Closes #205 (hopefully)
pull/217/head^2
PiRSquared17 9 years ago
parent ac72938d40
commit 9480834a37

@ -919,6 +919,9 @@ def getImageNamesAPI(config={}, session=None):
filename = re.sub('_', ' ', tmp_filename)
uploader = re.sub('_', ' ', props['imageinfo'][0]['user'])
images.append([filename, url, uploader])
else:
# if the API doesn't return query data, then we're done
break
if (len(images) == 1):
print ' Found 1 image'

Loading…
Cancel
Save