From 18fb9dcf5d14cd5bef17e72cbb82035961973ed6 Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Sat, 10 Aug 2013 16:07:14 +0200 Subject: [PATCH] Another bug in sensual_asa_cat.py --- sensual_asa_cat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensual_asa_cat.py b/sensual_asa_cat.py index 3382779..f5616f5 100644 --- a/sensual_asa_cat.py +++ b/sensual_asa_cat.py @@ -49,7 +49,7 @@ for i, p in enumerate(oldstream): for n, photo in enumerate(p.data['photos']): print('{0}/{1}'.format(n+1, len(p.data['photos'])), end='\t') try: - name = '{0}.{1}'.format(photo['guid'] + photo['sizes']['large'].split('.')[-1]) + name = '{0}.{1}'.format(photo['guid'], photo['sizes']['large'].split('.')[-1]) urllib.request.urlretrieve(url=photo['sizes']['large'], filename=name) print('[ OK ]') except Exception as e: -- 2.25.1