23 lines
490 B
C++
23 lines
490 B
C++
#ifndef GETPAGE_H
|
|
#define GETPAGE_H
|
|
|
|
#include <string>
|
|
#include <set>
|
|
#include <curl/curl.h>
|
|
|
|
class Curl {
|
|
public:
|
|
Curl();
|
|
~Curl();
|
|
std::string execute( const std::string &url );
|
|
private:
|
|
CURL *curl_handle;
|
|
};
|
|
|
|
std::string getDefUrl( const std::string &show, const std::string &language, Curl &c );
|
|
void findSeason(std::set<std::string> &files, int season, const std::string &path);
|
|
void iterateFS(std::set<int> &seasons, const std::string &path);
|
|
void printHelp();
|
|
|
|
#endif
|