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 ) { while( true ) {
pos = season_code.find("ge=\"" + language + "\" ", pos); pos = season_code.find("ge=\"" + language + "\" ", pos);
if( pos != std::string::npos ) { if( pos != std::string::npos ) {
if( language == "en" )
pos += 17; pos += 17;
else
pos += 29;
while( isspace(season_code[pos]) ) while( isspace(season_code[pos]) )
pos++; pos++;
auto end = season_code.find("<", pos); auto end = season_code.find("<", pos);