From e7eda7ca43e8482bf5c0024667aa0b21c0cf223c Mon Sep 17 00:00:00 2001 From: Moss Date: Fri, 30 Sep 2022 01:14:07 -0400 Subject: [PATCH] Season: Added Season Documentation --- src/season.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/season.h b/src/season.h index ae77a16..1e3044b 100644 --- a/src/season.h +++ b/src/season.h @@ -12,16 +12,45 @@ namespace dropout_dl { class season { public: + /// The name of the season std::string name; + /// The name of the series std::string series_name; + /// The link to the season page std::string url; + /// The season page data std::string page_data; + /// The list of all the episodes in the season std::vector 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 get_episodes(const std::string& html_data, const std::vector& 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); + /** + * + * @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& cookies, const std::string& series_name = "") { this->url = url; this->name = name;