Fix mexican ratings.
This commit is contained in:
1 parent
285e6e9667
commit
2253551b08
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -128,7 +128,7 @@
|
||||
- (NSUInteger) ratingIndexForiTunesCountry:(NSString *)aCountry media:(NSString *)aMedia ratingString:(NSString *)aRatingString {
|
||||
NSString *target1 = [[NSString stringWithFormat:@"%@ %@: %@", aCountry, aMedia, aRatingString] lowercaseString];
|
||||
NSString *target2 = [[NSString stringWithFormat:@"%@ %@: %@", aCountry, @"movie & TV", aRatingString] lowercaseString];
|
||||
for (NSUInteger i = 0; i < [ratings count]; i++) {
|
||||
for (NSUInteger i = 0; i < ratings.count; i++) {
|
||||
if ([[[ratings objectAtIndex:i] lowercaseString] isEqualToString:target1] || [[[ratings objectAtIndex:i] lowercaseString] isEqualToString:target2]) {
|
||||
return i;
|
||||
}
|
||||
|
||||
+1
-1
@@ -122,7 +122,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"country" : "México",
|
||||
"country" : "Mexico",
|
||||
"ratings" : [
|
||||
{ "media" : "movie", "prefix" : "mx-movie", "itunes-code" : "AA", "itunes-value" : "000", "description" : "AA" },
|
||||
{ "media" : "movie", "prefix" : "mx-movie", "itunes-code" : "A", "itunes-value" : "100", "description" : "A" },
|
||||
|
||||
Reference in new issue
Block a user