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:
parent
590d6308aa
commit
0406bca4cf
|
@ -150,7 +150,7 @@ namespace dropout_dl {
|
||||||
|
|
||||||
if (!(is_season || is_series || is_episode)) {
|
if (!(is_season || is_series || is_episode)) {
|
||||||
std::regex season_regex("season:\\d+\\/?$", std::regex::ECMAScript);
|
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)) {
|
if (std::regex_search(url, season_regex)) {
|
||||||
is_season = true;
|
is_season = true;
|
||||||
}
|
}
|
||||||
|
@ -161,9 +161,6 @@ namespace dropout_dl {
|
||||||
is_series = true;
|
is_series = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
std::cout << is_season << is_series << is_episode << '\n';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue