From 928a27f1049d19a3e33be3a1015e1b03517013b8 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Fri, 28 Oct 2016 01:15:49 +0300 Subject: [PATCH] fix bug with images name with underscopes --- stanis-tits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stanis-tits.py b/stanis-tits.py index b507597..bff7fd8 100644 --- a/stanis-tits.py +++ b/stanis-tits.py @@ -32,7 +32,7 @@ while STOP == False: images = soup.findAll('img', src=re.compile('img/*')) 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 if PAGE == 0: