#ifndef YTDLPWRAPPER_H #define YTDLPWRAPPER_H #include #include #include #include #include class YtdlpWrapper { public: nlohmann::json getJsonSearch(const std::string& searchTerm, int limit = 1); Video::video getVideoByUrl(const std::string& url); std::vector searchVideos(const std::string& searchterm, int limit = 1); private: pybind11::object get_ytdl(); pybind11::object ytdl = pybind11::none(); pybind11::scoped_interpreter guard{}; }; #endif