projects
/
diaspy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9e20e6
)
Another bug in sensual_asa_cat.py
author
Marek Marecki
<marekjm@taistelu.com>
Sat, 10 Aug 2013 14:07:14 +0000
(16:07 +0200)
committer
Marek Marecki
<marekjm@taistelu.com>
Sat, 10 Aug 2013 14:07:14 +0000
(16:07 +0200)
sensual_asa_cat.py
patch
|
blob
|
blame
|
history
diff --git
a/sensual_asa_cat.py
b/sensual_asa_cat.py
index 338277986bf007e5577bd4e04f57ac676c309dfd..f5616f5de34d92455643f49bc24ab5b849d73ff5 100644
(file)
--- 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: