Series: Add Check for Getting Series Name

This commit is contained in:
Moss 2022-09-29 17:16:30 -04:00
parent 1926485b1a
commit 05eec0da88
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ namespace dropout_dl {
this->url = url;
this->page_data = get_generic_page(url);
this->name = get_series_name(page_data);
if (name == "-1") {
std::cerr << "SERIES PARSE ERROR: Could not parse series name\n";
exit(10);
}
this->seasons = get_seasons(page_data, cookies);
}
};