From 6714d3f43762774fc76b9169b4e91e6a64a18383 Mon Sep 17 00:00:00 2001 From: zvon Date: Wed, 29 May 2019 23:16:18 +0200 Subject: [PATCH] Don't replace space with + in url, let encodeUrl take care of spaces --- functions.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/functions.cpp b/functions.cpp index 47defb4..e2e3975 100644 --- a/functions.cpp +++ b/functions.cpp @@ -243,8 +243,6 @@ void findSeasons( std::map< int, std::set< string > > &seasons, } string getDefUrl( string &show, const string &language, Curl &c ) { - std::replace( show.begin(), show.end(), ' ', '+' ); - string base_url = TEXT( "https://www.thetvdb.com" ); #ifdef _WIN32 @@ -395,7 +393,6 @@ bool findLanguage( const char_t *language ) { std::vector< std::pair< string, string > > getPossibleShows( string show, const string &language, Curl &c ) { // encode show name so it can be resolved as url - std::replace( show.begin(), show.end(), ' ', '+' ); show = encodeUrl( show ); #ifdef _WIN32 auto source_code = utf8_to_wstring(