From: Jan Szejko Date: Wed, 1 Aug 2018 11:19:19 +0000 (+0200) Subject: hack for pdf from collection X-Git-Tag: 1.7~16 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/a0ce0b15a412e4bc325470c1801968b8bdd1c7ec?ds=sidebyside hack for pdf from collection --- diff --git a/librarian/__init__.py b/librarian/__init__.py index 0c77901..9a9e23e 100644 --- a/librarian/__init__.py +++ b/librarian/__init__.py @@ -84,7 +84,7 @@ class WLURI(object): slug = None example = 'http://wolnelektury.pl/katalog/lektura/template/' - _re_wl_uri = re.compile(r'http://(www\.)?wolnelektury.pl/katalog/lektura/' + _re_wl_uri = re.compile(r'http://(www\.)?wolnelektury.pl/katalog/lektur[ay]/' '(?P[-a-z0-9]+)/?$') def __init__(self, uri):