diff options
author | ComradeCrow <comradecrow@vivaldi.net> | 2023-04-27 00:57:01 -0700 |
---|---|---|
committer | ComradeCrow <comradecrow@vivaldi.net> | 2023-04-27 00:57:01 -0700 |
commit | 07dae15a528ba2370b4cf05e539e664a4ff27279 (patch) | |
tree | f8a54c227435b0fcd9e751fdaf038c5615e89430 | |
parent | f72e036610d5174ba95fe7c11793ccf02c96ee6d (diff) | |
download | ytcpp-07dae15a528ba2370b4cf05e539e664a4ff27279.tar.gz |
fix version
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/main.cpp | 12 |
2 files changed, 6 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index aac7d57..d272ece 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,7 +57,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE src) target_compile_definitions(${PROJECT_NAME} PRIVATE DEF_APPDATA="${DEF_APPDATA}" - PRIVATE VERSION="${VERSION}" + PRIVATE VERSION="${PROJECT_VERSION}" ) target_link_libraries(${PROJECT_NAME} diff --git a/src/main.cpp b/src/main.cpp index 8153a75..fed0a30 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -55,10 +55,10 @@ int main(int argc, char **argv) { // validateStructConversions(); - YtdlpWrapper yt; - Video::video vid = yt.getVideoByUrl("https://youtu.be/jy5x7bDYd4o?list=OLAK5uy_kSLxuOA_vBO8SsXaI6PjJbqvsIBnBReGM"); - cout << vid.id << ", " << vid.url << endl; - yt.~YtdlpWrapper(); + // YtdlpWrapper yt; + // Video::video vid = yt.getVideoByUrl("https://youtu.be/jy5x7bDYd4o?list=OLAK5uy_kSLxuOA_vBO8SsXaI6PjJbqvsIBnBReGM"); + // cout << vid.id << ", " << vid.url << endl; + // yt.~YtdlpWrapper(); // vector<Video::video> response = yt.searchVideos("factorio"); // for (Video::video i: response) { @@ -69,9 +69,7 @@ int main(int argc, char **argv) { // nlohmann::json j = yt.getJsonSearch("the very thought of you"); // cout << j << endl; - cout << VERSION << endl; - - SqliteInterface data; + // SqliteInterface data; // vector<string> instances = getInstances(); // for (auto i: instances) { |