From 05eec0da88b769662a1b911b908f868e36d1356b Mon Sep 17 00:00:00 2001 From: Moss Date: Thu, 29 Sep 2022 17:16:30 -0400 Subject: [PATCH] Series: Add Check for Getting Series Name --- src/series.h | 4 ++++ 1 file changed, 4 insertions(+) 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); } };