Update safaribooks.py
This commit is contained in:
parent
f08c141f86
commit
f13c580269
1 changed files with 2 additions and 2 deletions
|
|
@ -556,7 +556,7 @@ class SafariBooks:
|
||||||
(self.filename.replace(".html", ".xhtml"),
|
(self.filename.replace(".html", ".xhtml"),
|
||||||
" (especially because you selected the `--no-kindle` option)" if self.args.no_kindle
|
" (especially because you selected the `--no-kindle` option)" if self.args.no_kindle
|
||||||
else ""))
|
else ""))
|
||||||
self.display.book_ad_info = 1
|
self.display.book_ad_info = 2
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.save_page_html(self.parse_html(self.get_html(urljoin(self.base_url, self.filename))))
|
self.save_page_html(self.parse_html(self.get_html(urljoin(self.base_url, self.filename))))
|
||||||
|
|
@ -650,7 +650,7 @@ class SafariBooks:
|
||||||
os.makedirs(self.images_path)
|
os.makedirs(self.images_path)
|
||||||
self.display.images_ad_info.value = 1
|
self.display.images_ad_info.value = 1
|
||||||
|
|
||||||
if self.display.book_ad_info == 1:
|
if self.display.book_ad_info == 2:
|
||||||
self.display.info("Some of the book contents were already downloaded.\n"
|
self.display.info("Some of the book contents were already downloaded.\n"
|
||||||
" If you want to be sure that all the images will be downloaded,\n"
|
" If you want to be sure that all the images will be downloaded,\n"
|
||||||
" please delete the `<BOOK NAME>/OEBPS/*.xhtml` files and restart the program.")
|
" please delete the `<BOOK NAME>/OEBPS/*.xhtml` files and restart the program.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue