summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bbab9d1)
For some images/authors 'photo-name-line-2' is empty.
except AssertionError:
raise forms.ValidationError('Error reading license name.')
except AssertionError:
raise forms.ValidationError('Error reading license name.')
- m = re.search(r'<span class="photo-name-line-2">([^<]*)</span>', html)
+ m = re.search(r'"ownername":"([^"]*)', html)
if m:
self.cleaned_data['author'] = "%s@Flickr" % m.group(1)
else:
if m:
self.cleaned_data['author'] = "%s@Flickr" % m.group(1)
else: