diff options
author | ComradeCrow <comradecrow@vivaldi.net> | 2023-04-19 00:36:27 -0700 |
---|---|---|
committer | ComradeCrow <comradecrow@vivaldi.net> | 2023-04-19 00:36:27 -0700 |
commit | bc48d6f7bf88d89846d9eabffc67cedeb312c273 (patch) | |
tree | 90d7dccb2a3bb3f193fed4440d81e9e1bd4cc1da /src | |
parent | df6ccef6603d81fe140bfd7c726a1b1e1f72f097 (diff) | |
download | ytcpp-bc48d6f7bf88d89846d9eabffc67cedeb312c273.tar.gz |
hotfix
Diffstat (limited to 'src')
-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 { |