2018-09-22 22:50:42 +00:00
|
|
|
#ifndef GETPAGE_H
|
|
|
|
#define GETPAGE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <set>
|
|
|
|
#include <experimental/filesystem>
|
2018-09-26 10:45:37 +00:00
|
|
|
#include <curl/curl.h>
|
2018-09-22 22:50:42 +00:00
|
|
|
|
2018-09-26 10:45:37 +00:00
|
|
|
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 );
|
2018-09-22 22:50:42 +00:00
|
|
|
void findSeason(std::set<std::experimental::filesystem::path> &files, int season, const std::string &path);
|
|
|
|
void iterateFS(std::set<int> &seasons, const std::string &path);
|
|
|
|
void printHelp();
|
|
|
|
|
|
|
|
#endif
|