diff options
author | ComradeCrow <comradecrow@vivaldi.net> | 2023-04-18 20:44:50 -0700 |
---|---|---|
committer | ComradeCrow <comradecrow@vivaldi.net> | 2023-04-18 20:44:50 -0700 |
commit | df6ccef6603d81fe140bfd7c726a1b1e1f72f097 (patch) | |
tree | 7bfe644bc55d41084fa7f03e34df5a7e6efff1b3 /src/main.cpp | |
parent | 772637e0947286e54ab97b8d55ad2c05fe9a1c86 (diff) | |
download | ytcpp-df6ccef6603d81fe140bfd7c726a1b1e1f72f097.tar.gz |
start adding structs
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index f258c24..992761a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,24 +1,25 @@ #include <cpr/cpr.h> #include <nlohmann/json.hpp> +#include <pybind11/embed.h> #include <sqlite3.h> #include <string> #include <iostream> #include <exception> #include <vector> -#include "tui.cpp" -#include "invapi.cpp" -#include "YtdlpWrapper.cpp" +#include "tui.hpp" +#include "invapi.hpp" +#include "YtdlpWrapper.hpp" +namespace py = pybind11; using namespace std; int main() { - py::scoped_interpreter guard{}; YtdlpWrapper yt; - // nlohmann::json j = yt.getJsonSearch("All Quiet on the Western Front Ost"); - // cout << j << endl; + nlohmann::json j = yt.getJsonSearch("the very thought of you"); + cout << j << endl; // vector<string> instances = getInstances(); // for (auto i: instances) { |