fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix tests and importers
[redakcja.git]
/
src
/
cover
/
utils.py
diff --git
a/src/cover/utils.py
b/src/cover/utils.py
index
baf3e88
..
59e194f
100644
(file)
--- a/
src/cover/utils.py
+++ b/
src/cover/utils.py
@@
-62,7
+62,7
@@
def get_flickr_data(url):
m = re.search(r'modelExport: (\{.*\})', html)
try:
assert m
m = re.search(r'modelExport: (\{.*\})', html)
try:
assert m
- download_url = 'https:' + json.loads(m.group(1))['main']['photo-models'][0]['
sizes']['o
']['url']
+ download_url = 'https:' + json.loads(m.group(1))['main']['photo-models'][0]['
data']['sizes']['data']['o']['data
']['url']
except (AssertionError, ValueError, IndexError, KeyError):
raise FlickrError('Error reading image URL.')
return {
except (AssertionError, ValueError, IndexError, KeyError):
raise FlickrError('Error reading image URL.')
return {