Fix bug that assumes language is english
This commit is contained in:
parent
a7a0976c30
commit
b00e8a4305
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user