diff --git a/Classes/MetadataImporters/SBiTunesStore.m b/Classes/MetadataImporters/SBiTunesStore.m index 4d2d460..bd99885 100755 --- a/Classes/MetadataImporters/SBiTunesStore.m +++ b/Classes/MetadataImporters/SBiTunesStore.m @@ -146,20 +146,20 @@ NSInteger sortSBMetadataResult(id ep1, id ep2, void *context) } NSData *jsonData = [SBMetadataHelper downloadDataFromURL:url withCachePolicy:SBDefaultPolicy]; - NSInteger id; + NSInteger iTunesID = 0; if (jsonData) { NSDictionary *d = [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:nil]; if ([d isKindOfClass:[NSDictionary class]]) { - id = [SBiTunesStore showOrSeasonIdFromResults:d forShow:aSeriesName andSeason:aSeasonNum andSeasonString:season]; + iTunesID = [SBiTunesStore showOrSeasonIdFromResults:d forShow:aSeriesName andSeason:aSeasonNum andSeasonString:season]; } } // If we have an ID, use the lookup API to get episodes for that show/season - if (id != 0) { + if (iTunesID != 0) { NSURL *lookupUrl; - lookupUrl = [NSURL URLWithString:[NSString stringWithFormat:@"http://itunes.apple.com/lookup?id=%ld&entity=tvEpisode&limit=200", (long)id]]; + lookupUrl = [NSURL URLWithString:[NSString stringWithFormat:@"https://itunes.apple.com/lookup?id=%ld&entity=tvEpisode&limit=200", (long)iTunesID]]; jsonData = [SBMetadataHelper downloadDataFromURL:lookupUrl withCachePolicy:SBDefaultPolicy]; diff --git a/MP42Foundation b/MP42Foundation index 2d67e1b..45619d6 160000 --- a/MP42Foundation +++ b/MP42Foundation @@ -1 +1 @@ -Subproject commit 2d67e1b718820a422531214a7b2a70ea8644e769 +Subproject commit 45619d646a237cb8b9f374eb5676af4002464ec6