From 0f84fb864cfe3f6c642706f40933ede6a74fe0c4 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 26 Mar 2014 11:13:37 +0100 Subject: [PATCH] Fix Flickr license detection. --- 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 f49f4f54..e6ffdff4 100755 --- a/apps/cover/forms.py +++ b/apps/cover/forms.py @@ -80,7 +80,7 @@ class FlickrForm(forms.Form): assert match license_url = match.group(1) self.cleaned_data['license_url'] = license_url - re_license = re.compile(r'http://creativecommons.org/licenses/([^/]*)/([^/]*)/.*') + re_license = re.compile(r'https?://creativecommons.org/licenses/([^/]*)/([^/]*)/.*') m = re_license.match(license_url) assert m self.cleaned_data['license_name'] = 'CC %s %s' % (m.group(1).upper(), m.group(2)) -- 2.20.1