Commit 736dbdee authored by Felix Paul Kühne's avatar Felix Paul Kühne

TMDb fetcher: don't double encoding search requests

parent 4fd4ab8c
......@@ -82,7 +82,7 @@
}
NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithObjectsAndKeys:sessionManager.apiKey, @"api_key",
[searchRequest stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet newlineCharacterSet]], @"query", nil];
searchRequest, @"query", nil];
if (releaseYear != nil)
[parameters setObject:releaseYear forKey:@"year"];
......@@ -174,7 +174,7 @@
}
NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithObjectsAndKeys:sessionManager.apiKey, @"api_key",
[searchRequest stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet newlineCharacterSet]], @"query", nil];
searchRequest, @"query", nil];
if (firstAirYear != nil)
[parameters setObject:firstAirYear forKey:@"first_air_date_year"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment