[behance] fix image extraction (#5873)

pull/5887/head
Mike Fährmann 2 months ago
parent 727e53f513
commit 36a64a3aa7
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -152,8 +152,16 @@ class BehanceGalleryExtractor(BehanceExtractor):
continue continue
if mtype == "image": if mtype == "image":
url = module["imageSizes"]["size_original"]["url"] sizes = {
append((url, module)) 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": elif mtype == "video":
try: try:

Loading…
Cancel
Save