Updating flickr html parsing, fixing #2688
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 27 May 2013 14:54:01 +0000 (16:54 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 27 May 2013 14:59:13 +0000 (16:59 +0200)
apps/cover/forms.py

index 7fc6a33..e373a6c 100755 (executable)
@@ -63,7 +63,7 @@ class FlickrForm(forms.Form):
         except AssertionError:
             raise forms.ValidationError('Error reading license name.')
 
-        m = re.search(r'<strong class="username">By <a href="[^"]*">([^<]*)</a></strong>', html)
+        m = re.search(r'<span class="photo-name-line-2">([^<]*)</span>', html)
         if m:
             self.cleaned_data['author'] = "%s@Flickr" % m.group(1)
         else: