mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-02 08:34:32 +02:00
Added IPTorrents
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user