Fix bug when episodes have 'table' in their name
This commit is contained in:
parent
ad0f081a3c
commit
a7a0976c30
@ -42,7 +42,7 @@ void singleSeason( const std::string &path, const std::string &show, int season,
|
|||||||
auto pos = season_code.find("\"translations\"");
|
auto pos = season_code.find("\"translations\"");
|
||||||
if( pos != std::string::npos ) {
|
if( pos != std::string::npos ) {
|
||||||
season_code = season_code.substr(pos);
|
season_code = season_code.substr(pos);
|
||||||
pos = season_code.find("table");
|
pos = season_code.find("</table>");
|
||||||
if( pos != std::string::npos )
|
if( pos != std::string::npos )
|
||||||
season_code = season_code.substr(0,pos);
|
season_code = season_code.substr(0,pos);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user