X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/12b5230d8fdb3ad995e867fb5d58a69e8a627e68..6a4cff9d955a0dbf417f684bf98a288f089bf46b:/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):