Added IPTorrents

This commit is contained in:
zone117x
2015-04-15 19:16:16 -06:00
parent 116cbed625
commit 08c63226d1
8 changed files with 299 additions and 31 deletions

View File

@@ -14,22 +14,6 @@ namespace Jackett
{
public class Freshon : IndexerInterface
{
class FreshonConfig : ConfigurationData
{
public StringItem Username { get; private set; }
public StringItem Password { get; private set; }
public FreshonConfig()
{
Username = new StringItem { Name = "Username", ItemType = ItemType.InputString };
Password = new StringItem { Name = "Password", ItemType = ItemType.InputString };
}
public override Item[] GetItems()
{
return new Item[] { Username, Password };
}
}
static string BaseUrl = "https://freshon.tv";
static string LoginUrl = BaseUrl + "/login.php";
@@ -67,10 +51,9 @@ namespace Jackett
public Task<ConfigurationData> GetConfigurationForSetup()
{
return Task.Run(async () =>
return Task.Run(() =>
{
//var loginPage = await client.GetAsync(LoginUrl);
var config = new FreshonConfig();
var config = new ConfigurationDataBasicLogin();
return (ConfigurationData)config;
});
}
@@ -79,7 +62,7 @@ namespace Jackett
{
return Task.Run(async () =>
{
var config = new FreshonConfig();
var config = new ConfigurationDataBasicLogin();
config.LoadValuesFromJson(configJson);
var pairs = new Dictionary<string, string>