Update app.py
Browse files
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 |
-
|
|
|
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']}"
|