From: Aleksander Ɓukasz Date: Mon, 27 May 2013 14:54:01 +0000 (+0200) Subject: Updating flickr html parsing, fixing #2688 X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/bc9a6f657ed38ad0f9c50b8a5509e3e2180b460b?ds=inline Updating flickr html parsing, fixing #2688 --- diff --git a/apps/cover/forms.py b/apps/cover/forms.py index 7fc6a33e..e373a6cb 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'By ([^<]*)', html) + m = re.search(r'([^<]*)', html) if m: self.cleaned_data['author'] = "%s@Flickr" % m.group(1) else: