Add country to lookupUrl
This commit is contained in:
1 parent
d05166616d
commit
92c455d8a4
1 file changed
+1
-1
@@ -159,7 +159,7 @@ NSInteger sortSBMetadataResult(id ep1, id ep2, void *context)
|
||||
// If we have an ID, use the lookup API to get episodes for that show/season
|
||||
if (iTunesID != 0) {
|
||||
NSURL *lookupUrl;
|
||||
lookupUrl = [NSURL URLWithString:[NSString stringWithFormat:@"https://itunes.apple.com/lookup?id=%ld&entity=tvEpisode&limit=200", (long)iTunesID]];
|
||||
lookupUrl = [NSURL URLWithString:[NSString stringWithFormat:@"https://itunes.apple.com/lookup?country=%@&id=%ld&entity=tvEpisode&limit=200", country, (long)iTunesID]];
|
||||
|
||||
jsonData = [SBMetadataHelper downloadDataFromURL:lookupUrl withCachePolicy:SBDefaultPolicy];
|
||||
|
||||
|
||||
Reference in new issue
Block a user