Skip to content

Commit

Permalink
switch to append while iterating over the images
Browse files Browse the repository at this point in the history
  • Loading branch information
gudata committed Oct 22, 2021
1 parent e8b8d61 commit 9445253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions safaribooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,9 +821,9 @@ def get(self):
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
Expand Down

0 comments on commit 9445253

Please sign in to comment.