Remove whitespace at the end of episodes if there is any

This commit is contained in:
zvon 2020-01-15 22:34:01 +01:00
parent 2a42f679ba
commit 0da0152804

View File

@ -140,6 +140,9 @@ std::vector< string > getEpisodeNames( const string &id, const string &season,
episodes.resize( index ); episodes.resize( index );
index--; index--;
episodes[index] = toString( x["episodeName"].get<string>() ); episodes[index] = toString( x["episodeName"].get<string>() );
// some eps have whitespace at the end
while( isspace( episodes[index].back() ) )
episodes[index].pop_back();
} }
} }
} }