Ben 11 mesiacov pred
rodič
commit
6cac843a4d
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      app.py

+ 2 - 2
app.py

@@ -22,8 +22,8 @@ def convert_dto(info):
         if item.get("width"):
             thumbnails.append({
                 "url": item.get("url", ""),
-                "width": item.get("width", 0),
-                "height": item.get("height", 0),
+                "width": f"{item.get('width', 0)}",
+                "height": f"{item.get('height', 0)}",
             })
     formats = []
     for item in info.get("formats", []):