From 9445253c4caf9f83da48645542c474cd4c1da634 Mon Sep 17 00:00:00 2001 From: gudata Date: Fri, 22 Oct 2021 10:10:33 +0300 Subject: [PATCH] switch to append while iterating over the images --- safaribooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/safaribooks.py b/safaribooks.py index 73a566d..f3931ad 100755 --- a/safaribooks.py +++ b/safaribooks.py @@ -821,9 +821,9 @@ class SafariBooks: if "images" in next_chapter and len(next_chapter["images"]): for img_url in next_chapter['images']: if api_v2_detected: - self.images.extend([asset_base_url + '/' + img_url]) + self.images.append(asset_base_url + '/' + img_url) else: - self.images.extend(urljoin(next_chapter['asset_base_url'], img_url)) + self.images.append(urljoin(next_chapter['asset_base_url'], img_url)) # Stylesheets