about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorComradeCrow <comradecrow@vivaldi.net>2023-04-19 00:36:27 -0700
committerComradeCrow <comradecrow@vivaldi.net>2023-04-19 00:36:27 -0700
commitbc48d6f7bf88d89846d9eabffc67cedeb312c273 (patch)
tree90d7dccb2a3bb3f193fed4440d81e9e1bd4cc1da
parentdf6ccef6603d81fe140bfd7c726a1b1e1f72f097 (diff)
downloadytcpp-bc48d6f7bf88d89846d9eabffc67cedeb312c273.tar.gz
hotfix
-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 {