Add country to lookupUrl

This commit is contained in:
Janos Kis committed 2017-03-14 17:40:33 +00:00
1 parent d05166616d
commit 92c455d8a4
1 file changed
+1 -1
+1 -1
View File
@@ -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];