SalexAI commited on
Commit
4b36c6f
·
verified ·
1 Parent(s): d7c2486

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -75,7 +75,8 @@ def get_album(token: str):
75
  video_list = []
76
  for photo in metadata:
77
  for derivative in photo.get("derivatives", {}).values():
78
- if derivative.get("mediaAssetType") == "video":
 
79
  checksum = derivative.get("checksum")
80
  if checksum in urls:
81
  video_url = f"https://{urls[checksum]['url_location']}{urls[checksum]['url_path']}"
 
75
  video_list = []
76
  for photo in metadata:
77
  for derivative in photo.get("derivatives", {}).values():
78
+ if derivative.get("mediaAssetType") == "video" or derivative.get("type", "").startswith("video"):
79
+
80
  checksum = derivative.get("checksum")
81
  if checksum in urls:
82
  video_url = f"https://{urls[checksum]['url_location']}{urls[checksum]['url_path']}"