Season: Added Season Documentation
This commit is contained in:
parent
d0950dcbaa
commit
e7eda7ca43
29
src/season.h
29
src/season.h
|
@ -12,16 +12,45 @@ namespace dropout_dl {
|
||||||
|
|
||||||
class season {
|
class season {
|
||||||
public:
|
public:
|
||||||
|
/// The name of the season
|
||||||
std::string name;
|
std::string name;
|
||||||
|
/// The name of the series
|
||||||
std::string series_name;
|
std::string series_name;
|
||||||
|
/// The link to the season page
|
||||||
std::string url;
|
std::string url;
|
||||||
|
/// The season page data
|
||||||
std::string page_data;
|
std::string page_data;
|
||||||
|
/// The list of all the episodes in the season
|
||||||
std::vector<episode> episodes;
|
std::vector<episode> episodes;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param html_data - The season page data
|
||||||
|
* @param cookies - The browser cookies
|
||||||
|
* @return A vector of all episodes in the season
|
||||||
|
*
|
||||||
|
* Gets all the episodes of the season and returns in a vector
|
||||||
|
*/
|
||||||
static std::vector<episode> get_episodes(const std::string& html_data, const std::vector<cookie>& cookies);
|
static std::vector<episode> get_episodes(const std::string& html_data, const std::vector<cookie>& cookies);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param quality - The quality of the videos
|
||||||
|
* @param series_directory - The directory of the series
|
||||||
|
*
|
||||||
|
* Downloads all the episodes of the season. Appends the season to the series directory
|
||||||
|
*/
|
||||||
void download(const std::string& quality, const std::string& series_directory);
|
void download(const std::string& quality, const std::string& series_directory);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param url - The url to the webpage of the season
|
||||||
|
* @param name - The name of the season
|
||||||
|
* @param cookies - The browser cookies
|
||||||
|
* @param series_name - The name of the series
|
||||||
|
*
|
||||||
|
* Creates a season object and populates the needed information.
|
||||||
|
*/
|
||||||
season(const std::string& url, const std::string& name, const std::vector<cookie>& cookies, const std::string& series_name = "") {
|
season(const std::string& url, const std::string& name, const std::vector<cookie>& cookies, const std::string& series_name = "") {
|
||||||
this->url = url;
|
this->url = url;
|
||||||
this->name = name;
|
this->name = name;
|
||||||
|
|
Loading…
Reference in New Issue