Merged in JohnKis/subler (pull request #17)

Add country to lookupUrl
This commit is contained in:
János Kis authored and Damiano Galassi committed 2017-03-15 10:44:50 +00:00
commit 5dc4e7aa02
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];