2018-09-22 22:50:42 +00:00
|
|
|
#ifndef GETPAGE_H
|
|
|
|
#define GETPAGE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <set>
|
2019-01-17 16:08:51 +00:00
|
|
|
#include <map>
|
2019-01-19 12:40:10 +00:00
|
|
|
#include "network.hpp"
|
2018-09-26 10:45:37 +00:00
|
|
|
|
2019-01-07 21:23:15 +00:00
|
|
|
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);
|
2019-01-17 16:23:15 +00:00
|
|
|
void findSeasons(std::map<int, std::set<std::string>> &seasons, const std::string &path, const std::set<int> &season_numbers);
|
2019-01-17 16:08:51 +00:00
|
|
|
void iterateFS(std::map<int, std::set<std::string>> &seasons, const std::string &path);
|
2018-09-22 22:50:42 +00:00
|
|
|
void printHelp();
|
|
|
|
|
2019-01-07 21:23:15 +00:00
|
|
|
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);
|
|
|
|
|
2019-01-19 12:40:10 +00:00
|
|
|
void parseSeasonNumbers(std::set<int> &seasons_num, const char *argument);
|
|
|
|
void printLangs();
|
|
|
|
bool findLanguage( const char *language );
|
|
|
|
|
2019-01-21 19:30:14 +00:00
|
|
|
std::string encodeUrl( const std::string &url );
|
|
|
|
|
2018-09-22 22:50:42 +00:00
|
|
|
#endif
|