From f13c58026987bfe6710320ddb2f0b7acd27b629b Mon Sep 17 00:00:00 2001 From: Lorenzo Di Fuccia Date: Tue, 12 Dec 2017 16:41:52 +0100 Subject: [PATCH] Update safaribooks.py --- safaribooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/safaribooks.py b/safaribooks.py index 11b35e2..fc50f18 100644 --- a/safaribooks.py +++ b/safaribooks.py @@ -556,7 +556,7 @@ class SafariBooks: (self.filename.replace(".html", ".xhtml"), " (especially because you selected the `--no-kindle` option)" if self.args.no_kindle else "")) - self.display.book_ad_info = 1 + self.display.book_ad_info = 2 else: 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) 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" " If you want to be sure that all the images will be downloaded,\n" " please delete the `/OEBPS/*.xhtml` files and restart the program.")