Fix for morethantv and some ssl issues

This commit is contained in:
zone117x
2015-04-21 18:57:04 -06:00
parent 75f823f671
commit 0cb0dbcb60
2 changed files with 5 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ namespace Jackett.Indexers
public bool IsConfigured { get; private set; } public bool IsConfigured { get; private set; }
static string BaseUrl = "http://www.morethan.tv"; static string BaseUrl = "https://www.morethan.tv";
static string LoginUrl = BaseUrl + "/login.php"; static string LoginUrl = BaseUrl + "/login.php";
@@ -66,7 +66,7 @@ namespace Jackett.Indexers
return Task.FromResult<ConfigurationData>(config); return Task.FromResult<ConfigurationData>(config);
} }
public async Task ApplyConfiguration(Newtonsoft.Json.Linq.JToken configJson) public async Task ApplyConfiguration(JToken configJson)
{ {
var config = new ConfigurationDataBasicLogin(); var config = new ConfigurationDataBasicLogin();

View File

@@ -25,6 +25,9 @@ namespace Jackett
public Server() public Server()
{ {
// Allow all SSL.. sucks I know but mono on linux is having problems without it..
ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;
LoadApiKey(); LoadApiKey();
indexerManager = new IndexerManager(); indexerManager = new IndexerManager();