Commit 8c6e42ab authored by Felix Paul Kühne's avatar Felix Paul Kühne

MDFHatchetFetcher: fix look-up of artists with spaces in their names

parent 4df431f3
......@@ -66,8 +66,6 @@
if (!sessionManager.apiKey)
return;
artistName = [artistName stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet alphanumericCharacterSet]];
NSURLSessionTask *task = [sessionManager GET:@"artists" parameters:@{ @"name" : artistName }
success:^(NSURLSessionDataTask *task, NSDictionary *responseObject) {
@synchronized(_requests) {
......@@ -136,9 +134,6 @@
if (!sessionManager.apiKey)
return;
albumName = [albumName stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet alphanumericCharacterSet]];
artistName = [artistName stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet alphanumericCharacterSet]];
NSURLSessionTask *task = [sessionManager GET:@"albums" parameters:@{ @"artist_name" : artistName,
@"name" : albumName }
success:^(NSURLSessionDataTask *task, NSDictionary *responseObject) {
......
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