From f62a2f0c599ba34f80bc170befdeae045cf523c4 Mon Sep 17 00:00:00 2001 From: Moss Date: Wed, 28 Sep 2022 23:59:05 -0400 Subject: [PATCH] Episode: Added Check For Valid Episode URL --- src/episode.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/episode.h b/src/episode.h index e94fba4..1cf4c34 100644 --- a/src/episode.h +++ b/src/episode.h @@ -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) {