[behance] fix image extraction (#5873)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user