diff --git a/src/series.h b/src/series.h index c54fb07..0a8abf2 100644 --- a/src/series.h +++ b/src/series.h @@ -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); } };