about summary refs log tree commit diff stats
path: root/src/YtdlpWrapper.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/YtdlpWrapper.hpp')
-rw-r--r--src/YtdlpWrapper.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/YtdlpWrapper.hpp b/src/YtdlpWrapper.hpp
index 9dbd3a2..b1633ca 100644
--- a/src/YtdlpWrapper.hpp
+++ b/src/YtdlpWrapper.hpp
@@ -17,10 +17,10 @@ namespace Video {
     struct thumbnail {
 
         std::string url;
-        std::int preference;
-        std::int id;
+        int preference;
+        int id;
         std::optional<std::string> resolution;
-    }
+    };
 
     struct video {
 
@@ -28,11 +28,12 @@ namespace Video {
         std::string title;
         std::string url;
         std::string channel;
-        std::int duration;
+        std::optional<int> duration;
         std::optional<int> viewcount;
         std::optional<std::string> description;
-
-    }
+        std::vector<format> formats;
+        std::vector<thumbnail> thumbnails;
+    };
 }
 
 class YtdlpWrapper {