tv_rename/functions.hpp

28 lines
750 B
C++
Raw Normal View History

2018-09-22 22:50:42 +00:00
#ifndef GETPAGE_H
#define GETPAGE_H
#include <string>
#include <set>
#include <curl/curl.h>
2018-09-22 22:50:42 +00:00
class Curl {
public:
2019-01-04 19:19:08 +00:00
Curl();
~Curl();
std::string execute( const std::string &url );
private:
2019-01-04 19:19:08 +00:00
CURL *curl_handle;
};
std::string getDefUrl( std::string show, const std::string &language, Curl &c );
2019-01-03 18:01:43 +00:00
void findSeason(std::set<std::string> &files, int season, const std::string &path);
2018-09-22 22:50:42 +00:00
void iterateFS(std::set<int> &seasons, const std::string &path);
void printHelp();
bool searchSpecificSeason(const char *const p, size_t &ep_pos, const std::string &number);
bool searchSpecificSeason(const char *const p, const std::string &number);
bool searchSeason(const char *const p, size_t &season_pos);
bool searchSeason(const char *const p);
2018-09-22 22:50:42 +00:00
#endif