Episode: Added Check For Valid Episode URL

This commit is contained in:
Moss 2022-09-28 23:59:05 -04:00
parent 144353558c
commit f62a2f0c59
1 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,11 @@ namespace dropout_dl {
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);
if (verbose) {