diff --git a/Plugins/TheTVDB/Info.plist b/Plugins/TheTVDB/Info.plist index a2d4074e..1a289276 100644 --- a/Plugins/TheTVDB/Info.plist +++ b/Plugins/TheTVDB/Info.plist @@ -23,7 +23,7 @@ CFBundleVersion BUILDVERSION IconURL - http://thetvdb.com/favicon.ico + https://thetvdb.com/favicon.ico NSPrincipalClass TheTVDBPlugin diff --git a/Plugins/TheTVDB/src/TheTVDBPlugin.m b/Plugins/TheTVDB/src/TheTVDBPlugin.m index 0fa57c8c..c9e8daea 100644 --- a/Plugins/TheTVDB/src/TheTVDBPlugin.m +++ b/Plugins/TheTVDB/src/TheTVDBPlugin.m @@ -71,7 +71,7 @@ - (void)view:(id)sender NSString* episode = [result valueForKey:TVDBEpisodeIdTagIdent]; NSString* str = [[NSString stringWithFormat: - @"http://thetvdb.com/?tab=episode&seriesid=%d&seasonid=%@&id=%@", + @"https://thetvdb.com/?tab=episode&seriesid=%d&seasonid=%@&id=%@", [series unsignedIntValue], season, episode] stringByAddingPercentEncodingWithAllowedCharacters: [NSCharacterSet URLQueryAllowedCharacterSet] ]; @@ -86,7 +86,7 @@ - (void)viewSeason:(id)sender NSString* season = [result valueForKey:TVDBSeasonIdTagIdent]; NSString* str = [[NSString stringWithFormat: - @"http://thetvdb.com/?tab=season&seriesid=%d&seasonid=%@", + @"https://thetvdb.com/?tab=season&seriesid=%d&seasonid=%@", [series unsignedIntValue], season] stringByAddingPercentEncodingWithAllowedCharacters: [NSCharacterSet URLQueryAllowedCharacterSet] ]; @@ -100,7 +100,7 @@ - (void)viewSeries:(id)sender NSNumber* series = [result valueForKey:TVDBSeriesIdTagIdent]; NSString* str = [[NSString stringWithFormat: - @"http://thetvdb.com/?tab=series&id=%d", + @"https://thetvdb.com/?tab=series&id=%d", [series unsignedIntValue]] stringByAddingPercentEncodingWithAllowedCharacters: [NSCharacterSet URLQueryAllowedCharacterSet] ]; diff --git a/Plugins/TheTVDB/src/TheTVDBSearch.m b/Plugins/TheTVDB/src/TheTVDBSearch.m index c3b012de..0198f95b 100644 --- a/Plugins/TheTVDB/src/TheTVDBSearch.m +++ b/Plugins/TheTVDB/src/TheTVDBSearch.m @@ -65,7 +65,7 @@ - (void)operationsFinished - (void)updateMirror; { NSURL* url = [NSURL URLWithString:[NSString - stringWithFormat:@"http://www.thetvdb.com/api/%@/mirrors.xml", + stringWithFormat:@"https://www.thetvdb.com/api/%@/mirrors.xml", THETVDB_API_KEY]]; //MZLoggerDebug(@"Sending request to %@", [url absoluteString]); mirrorRequest = [[MZHTTPRequest alloc] initWithURL:url]; @@ -105,7 +105,7 @@ - (void)updateMirrorCompleted:(id)request; srandom(time(NULL)); if([bannermirrors count] == 0) - bannerMirror = @"http://www.thetvdb.com"; + bannerMirror = @"https://www.thetvdb.com"; else if([bannermirrors count] == 1) bannerMirror = [[bannermirrors objectAtIndex:0] retain]; else { @@ -114,7 +114,7 @@ - (void)updateMirrorCompleted:(id)request; } if([xmlmirrors count] == 0) - xmlMirror = @"http://www.thetvdb.com"; + xmlMirror = @"https://www.thetvdb.com"; else if([xmlmirrors count] == 1) xmlMirror = [[xmlmirrors objectAtIndex:0] retain]; else { @@ -128,14 +128,14 @@ - (void)updateMirrorFailed:(id)request; //ASIHTTPRequest* theRequest = request; //MZLoggerDebug(@"Request failed with status code %d", [theRequest responseStatusCode]); - bannerMirror = @"http://www.thetvdb.com"; - xmlMirror = @"http://www.thetvdb.com"; + bannerMirror = @"https://www.thetvdb.com"; + xmlMirror = @"https://www.thetvdb.com"; } - (void)fetchSeriesByName:(NSString *)name { - NSString* url = @"http://www.thetvdb.com/api/GetSeries.php"; + NSString* url = @"https://www.thetvdb.com/api/GetSeries.php"; NSDictionary* p = [NSDictionary dictionaryWithObjectsAndKeys:name, @"seriesname", @"en", @"language", nil]; NSString* params = [NSString mz_queryStringForParameterDictionary:p];