Episode: Added Check For Valid Episode URL
This commit is contained in:
parent
144353558c
commit
f62a2f0c59
|
@ -91,6 +91,11 @@ namespace dropout_dl {
|
||||||
std::cout << "Got name: " << name << '\n';
|
std::cout << "Got name: " << name << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (name == "ERROR") {
|
||||||
|
std::cerr << "EPISODE ERROR: Invalid Episode URL\n";
|
||||||
|
exit(6);
|
||||||
|
}
|
||||||
|
|
||||||
this->season_number = get_season_number(episode_data);
|
this->season_number = get_season_number(episode_data);
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
|
|
Loading…
Reference in New Issue