Series: Add Check for Getting Series Name
This commit is contained in:
parent
1926485b1a
commit
05eec0da88
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue