Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Result returns null #10

Open
tropicdome opened this issue Dec 9, 2017 · 2 comments
Open

Result returns null #10

tropicdome opened this issue Dec 9, 2017 · 2 comments

Comments

@tropicdome
Copy link

Hi,

When I run any of the get commands, it returns successfully, but the result array is null, for example running

    [[ItunesSearch sharedInstance] getTrackWithName:@"Welcome to the Jungle" artist:@"Guns N Roses" album:@"Appetite for Destruction" limitOrNil:nil successHandler:^(NSArray *result) {
        NSLog(@"Success: %@", result);
    } failureHandler:^(NSError *error) {
        NSLog(@"Failure: %@", error);
    }];

returns
Success: (null)

Do you have any idea why?

@tropicdome
Copy link
Author

Hm may have found the issue. If no country code is provided your lib uses [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode] which returns a number and not a locale in the format as NO, SE, DE.

If I add a locale in the formats as @"DE", then it works.

@claesjacobsson
Copy link
Contributor

I'm having similar issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants