X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/b6ec0976a383cc1823f4a199bc3e6dc40880b049..ef1261dbe0b30a1ab9f39831b7c167918913338a:/librarian/parser.py diff --git a/librarian/parser.py b/librarian/parser.py index 469b7df..5ae06e2 100644 --- a/librarian/parser.py +++ b/librarian/parser.py @@ -191,7 +191,8 @@ class WLDocument(object): if make_author_dir: save_path = os.path.join(save_path, unicode(self.book_info.author).encode('utf-8')) - save_path = os.path.join(save_path, self.book_info.slug) + save_path = os.path.join(save_path, + self.book_info.uri.filename_stem()) if ext: save_path += '.%s' % ext else: