fix bug with images name with underscopes

This commit is contained in:
Alexander Popov 2016-10-28 01:15:49 +03:00
parent bce6731494
commit 928a27f104

View File

@ -32,7 +32,7 @@ while STOP == False:
images = soup.findAll('img', src=re.compile('img/*')) images = soup.findAll('img', src=re.compile('img/*'))
for image in images: for image in images:
if int(image['src'].split('/')[1].split('.')[0]) == int(LATEST_FILE): if image['src'].split('/')[1].split('.')[0] == LATEST_FILE:
STOP = True STOP = True
if PAGE == 0: if PAGE == 0: