about summary refs log blame commit diff stats
path: root/src/YtdlpWrapper.hpp
blob: f7cc256802bc6084333f12f77fabd9909057e70e (plain) (tree)
1
2
3
4
5
6
7
8
9

                      





                            
                                                                              
            

                                                 



     
#ifndef YTDLPWRAPPER_H
#define YTDLPWRAPPER_H
#include <string>
#include <pybind11/embed.h>
#include <nlohmann/json.hpp>

class YtdlpWrapper {
    public:
        nlohmann::json getJsonSearch(const string& searchTerm, int limit = 1);
    private:
        pybind11::object get_ytdl();
        pybind11::object ytdl = pybind11::none();
};


#endif