diff options
-rw-r--r-- | src/YtdlpWrapper.hpp | 13 |
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 { |