Episode: Fixed Url Parsing For Deciding What Type to Download

Now url in the format https://www.dropout.tv/videos/<title> work
This commit is contained in:
Moss 2023-02-08 16:00:21 -08:00
parent 590d6308aa
commit 0406bca4cf
No known key found for this signature in database
GPG Key ID: F539D4A506C954F9
1 changed files with 1 additions and 4 deletions

View File

@ -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';
}
}
};
}