From 0406bca4cf24455898188143e6917982683a3f34 Mon Sep 17 00:00:00 2001 From: Moss Date: Wed, 8 Feb 2023 16:00:21 -0800 Subject: [PATCH] Episode: Fixed Url Parsing For Deciding What Type to Download Now url in the format https://www.dropout.tv/videos/ work --- src/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 49baa51..7949301 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -150,7 +150,7 @@ namespace dropout_dl { if (!(is_season || is_series || is_episode)) { std::regex season_regex("season:\\d+\\/?$", std::regex::ECMAScript); - std::regex episode_regex("season:\\d+\\/.+$", std::regex::ECMAScript); + std::regex episode_regex("/videos/", std::regex::ECMAScript); if (std::regex_search(url, season_regex)) { is_season = true; } @@ -161,9 +161,6 @@ namespace dropout_dl { is_series = true; } } - else { - std::cout << is_season << is_series << is_episode << '\n'; - } } }; }