From c2de733944de9c66c25f61fafa9e295d2c29f32c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 29 Jul 2013 13:09:02 +0200 Subject: [PATCH 1/1] Fixing flickr parsing For some images/authors 'photo-name-line-2' is empty. --- apps/cover/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cover/forms.py b/apps/cover/forms.py index e373a6cb..0173134a 100755 --- a/apps/cover/forms.py +++ b/apps/cover/forms.py @@ -63,7 +63,7 @@ class FlickrForm(forms.Form): except AssertionError: raise forms.ValidationError('Error reading license name.') - m = re.search(r'([^<]*)', html) + m = re.search(r'"ownername":"([^"]*)', html) if m: self.cleaned_data['author'] = "%s@Flickr" % m.group(1) else: -- 2.20.1