aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/behance.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/behance.py')
-rw-r--r--gallery_dl/extractor/behance.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/gallery_dl/extractor/behance.py b/gallery_dl/extractor/behance.py
index ad0caf9..f24059f 100644
--- a/gallery_dl/extractor/behance.py
+++ b/gallery_dl/extractor/behance.py
@@ -152,8 +152,16 @@ class BehanceGalleryExtractor(BehanceExtractor):
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: