Fixed #7
This commit is contained in:
parent
a7b95ebd5b
commit
642812fb22
1 changed files with 6 additions and 1 deletions
|
|
@ -299,7 +299,12 @@ class SafariBooks:
|
|||
self.base_url = self.book_info["web_url"]
|
||||
|
||||
self.clean_book_title = self.clean_dirname(self.book_title)
|
||||
self.BOOK_PATH = os.path.join(PATH, "Books", self.clean_book_title)
|
||||
|
||||
books_dir = os.path.join(PATH, "Books")
|
||||
if not os.path.isdir(books_dir):
|
||||
os.mkdir(books_dir)
|
||||
|
||||
self.BOOK_PATH = os.path.join(books_dir, self.clean_book_title)
|
||||
self.css_path = ""
|
||||
self.images_path = ""
|
||||
self.create_dirs()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue