Skip to content

Commit

Permalink
Use https for TheTVDB
Browse files Browse the repository at this point in the history
  • Loading branch information
griff committed Oct 7, 2017
1 parent 0092c83 commit 5908927
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Plugins/TheTVDB/Info.plist
Expand Up @@ -23,7 +23,7 @@
<key>CFBundleVersion</key>
<string>BUILDVERSION</string>
<key>IconURL</key>
<string>http://thetvdb.com/favicon.ico</string>
<string>https://thetvdb.com/favicon.ico</string>
<key>NSPrincipalClass</key>
<string>TheTVDBPlugin</string>
</dict>
Expand Down
6 changes: 3 additions & 3 deletions Plugins/TheTVDB/src/TheTVDBPlugin.m
Expand Up @@ -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]
];
Expand All @@ -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]
];
Expand All @@ -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]
];
Expand Down
12 changes: 6 additions & 6 deletions Plugins/TheTVDB/src/TheTVDBSearch.m
Expand Up @@ -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];
Expand Down Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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];
Expand Down

0 comments on commit 5908927

Please sign in to comment.