X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/eb6b8e8e497922011e8a89f1e1869d68ef8f7066..c7734daf3d6884c358f1644c1f8f7970453fafb1:/src/librarian/picture.py?ds=sidebyside diff --git a/src/librarian/picture.py b/src/librarian/picture.py index 3897d1a..113cece 100644 --- a/src/librarian/picture.py +++ b/src/librarian/picture.py @@ -17,11 +17,7 @@ class WLPictureURI(WLURI): _re_wl_uri = re.compile( 'http://wolnelektury.pl/katalog/obraz/(?P[-a-z0-9]+)/?$' ) - - @classmethod - def from_slug(cls, slug): - uri = 'http://wolnelektury.pl/katalog/obraz/%s/' % slug - return cls(uri) + template = 'http://wolnelektury.pl/katalog/obraz/%s/' def as_wlpictureuri_strict(text):