Ben 11 месяцев назад
Родитель
Сommit
6cac843a4d
1 измененных файлов с 2 добавлено и 2 удалено
  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", []):