LPX55 commited on
Commit
700969f
·
verified ·
1 Parent(s): 62a6e37

Update civitai_api.py

Browse files
Files changed (1) hide show
  1. civitai_api.py +1 -1
civitai_api.py CHANGED
@@ -396,7 +396,7 @@ def get_civitai_json(dl_url: str, is_html: bool=False, image_baseurl: str="", ap
396
  if not r.ok: return json, html, image
397
  html = r.text
398
  if "images" in json.keys() and len(json["images"]) != 0:
399
- for image_info in json_data["images"]:
400
  if image_info["type"] == "video":
401
  video_path = download_media(session, image_info, image_baseurl, headers, is_video=True)
402
  elif image_info["type"] == "image":
 
396
  if not r.ok: return json, html, image
397
  html = r.text
398
  if "images" in json.keys() and len(json["images"]) != 0:
399
+ for image_info in json["images"]:
400
  if image_info["type"] == "video":
401
  video_path = download_media(session, image_info, image_baseurl, headers, is_video=True)
402
  elif image_info["type"] == "image":