minor fix in covers check
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 11 May 2012 12:34:09 +0000 (14:34 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 11 May 2012 12:34:18 +0000 (14:34 +0200)
apps/catalogue/management/commands/checkcovers.py

index 83f2fad..ef61702 100644 (file)
@@ -44,7 +44,7 @@ class Command(BaseCommand):
         by_license = defaultdict(list)
         no_license = []
 
-        re_flickr = re.compile(ur'https?://(?:www.)?flickr.com/photos/([^/]*)/.*')
+        re_flickr = re.compile(ur'https?://(?:www\.|secure\.)?flickr.com/photos/([^/]*)/.*')
         re_license = re.compile(ur'.*,\s*(CC.*)')
 
         with transaction.commit_on_success():