From: Radek Czajka Date: Fri, 11 May 2012 12:34:09 +0000 (+0200) Subject: minor fix in covers check X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/c710b63ea1e7f55d4670901cefe0ba4410dd9216?ds=inline minor fix in covers check --- diff --git a/apps/catalogue/management/commands/checkcovers.py b/apps/catalogue/management/commands/checkcovers.py index 83f2fad8c..ef61702ce 100644 --- a/apps/catalogue/management/commands/checkcovers.py +++ b/apps/catalogue/management/commands/checkcovers.py @@ -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():