More the unknown rating to the last position of the array, so it doesn't replace the actual mpaa unrated value.

This commit is contained in:
Damiano Galassi committed 2016-10-05 14:03:35 +02:00
1 parent a41427ef1a
commit b524eab915
2 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@
}
- (NSUInteger) unknownIndex {
return 0;
return iTunesCodes.count - 1;
}
- (NSUInteger) ratingIndexForiTunesCode:(NSString *)aiTunesCode {
+6 -6
View File
@@ -1,10 +1,4 @@
[
{
"country" : "Unknown",
"ratings" : [
{ "media" : "movie & TV", "prefix" : "mpaa", "itunes-code" : "Unrated", "itunes-value" : "???", "description" : "Unknown" }
]
},
{
"country" : "USA",
"ratings" : [
@@ -226,5 +220,11 @@
{ "media" : "movie & TV", "prefix" : "ru-movie", "itunes-code" : "18+", "itunes-value" : "400", "description" : "18+" },
{ "media" : "movie & TV", "prefix" : "ru-movie", "itunes-code" : "Unrated", "itunes-value" : "???", "description" : "Unrated" }
]
},
{
"country" : "Unknown",
"ratings" : [
{ "media" : "movie & TV", "prefix" : "mpaa", "itunes-code" : "Unrated", "itunes-value" : "???", "description" : "Unknown" }
]
}
]