switch to append while iterating over the images
This commit is contained in:
parent
e8b8d61143
commit
9445253c4c
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue