Fix bug that assumes language is english

This commit is contained in:
zvon 2019-01-23 02:10:01 +01:00
parent a7a0976c30
commit b00e8a4305

View File

@ -12,7 +12,10 @@ std::vector<std::string> parseEpisodeNames( const std::string &season_code, cons
while( true ) {
pos = season_code.find("ge=\"" + language + "\" ", pos);
if( pos != std::string::npos ) {
pos+= 17;
if( language == "en" )
pos += 17;
else
pos += 29;
while( isspace(season_code[pos]) )
pos++;
auto end = season_code.find("<", pos);