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'"ownername":"([^"]*)', html)
if m:
self.cleaned_data['author'] = "%s@Flickr" % m.group(1)
else: