X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/feee71de06ace01f793c2c8adf9cce65b9df2cec..b41227def9e350f773c9c10b73a72fe9422233c1:/apps/cover/utils.py?ds=inline diff --git a/apps/cover/utils.py b/apps/cover/utils.py index 80ee0b7e..f1cdcc96 100755 --- a/apps/cover/utils.py +++ b/apps/cover/utils.py @@ -52,7 +52,7 @@ def get_flickr_data(url): m = re.search(r'modelExport: (\{.*\})', html) try: assert m - download_url = 'https:' + json.loads(m.group(1))['photo-models'][0]['sizes']['o']['url'] + download_url = 'https:' + json.loads(m.group(1))['main']['photo-models'][0]['sizes']['o']['url'] except (AssertionError, ValueError, IndexError, KeyError): raise FlickrError('Error reading image URL.') return {