Remove whitespace at the end of episodes if there is any
This commit is contained in:
parent
2a42f679ba
commit
0da0152804
@ -140,6 +140,9 @@ std::vector< string > getEpisodeNames( const string &id, const string &season,
|
||||
episodes.resize( index );
|
||||
index--;
|
||||
episodes[index] = toString( x["episodeName"].get<string>() );
|
||||
// some eps have whitespace at the end
|
||||
while( isspace( episodes[index].back() ) )
|
||||
episodes[index].pop_back();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user