X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/12b5230d8fdb3ad995e867fb5d58a69e8a627e68..e1874b83cbc052de4c83aaf31c4091a31280b2fb:/librarian/__init__.py diff --git a/librarian/__init__.py b/librarian/__init__.py index d307def..9a9e23e 100644 --- a/librarian/__init__.py +++ b/librarian/__init__.py @@ -10,7 +10,7 @@ import re import shutil import urllib -from wolnelektury.utils import makedirs +from util import makedirs class UnicodeException(Exception): @@ -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):