Skip to content

Commit

Permalink
[behance] fix image extraction (#5873)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jul 21, 2024
1 parent 727e53f commit 36a64a3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions gallery_dl/extractor/behance.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,16 @@ def get_images(self, data):
continue

if mtype == "image":
url = module["imageSizes"]["size_original"]["url"]
append((url, module))
sizes = {
size["url"].rsplit("/", 2)[1]: size
for size in module["imageSizes"]["allAvailable"]
}
size = (sizes.get("source") or
sizes.get("max_3840") or
sizes.get("fs") or
sizes.get("hd") or
sizes.get("disp"))
append((size["url"], module))

elif mtype == "video":
try:
Expand Down

0 comments on commit 36a64a3

Please sign in to comment.