Merge pull request #236 from flightlevel/bitmetvinfo

BitMeTv: Add instructions
This commit is contained in:
flightlevel 2016-02-07 16:49:42 +11:00
commit 80686c81ee
2 changed files with 6 additions and 2 deletions

View File

@ -42,7 +42,7 @@ namespace Jackett.Indexers
client: c, client: c,
logger: l, logger: l,
p: ps, p: ps,
configData: new ConfigurationDataCaptchaLogin()) configData: new ConfigurationDataCaptchaLogin("Ensure that you have the 'Force SSL' option set to 'yes' in your profile on the BitMeTv webpage."))
{ {
} }

View File

@ -18,13 +18,17 @@ namespace Jackett.Models.IndexerConfig
public HiddenItem CaptchaCookie { get; private set; } public HiddenItem CaptchaCookie { get; private set; }
public ConfigurationDataCaptchaLogin() public DisplayItem Instructions { get; private set; }
/// <param name="instructionMessageOptional">Enter any instructions the user will need to setup the tracker</param>
public ConfigurationDataCaptchaLogin(string instructionMessageOptional = null)
{ {
Username = new StringItem { Name = "Username" }; Username = new StringItem { Name = "Username" };
Password = new StringItem { Name = "Password" }; Password = new StringItem { Name = "Password" };
CaptchaImage = new ImageItem { Name = "Captcha Image" }; CaptchaImage = new ImageItem { Name = "Captcha Image" };
CaptchaText = new StringItem { Name = "Captcha Text" }; CaptchaText = new StringItem { Name = "Captcha Text" };
CaptchaCookie = new HiddenItem("") { Name = "Captcha Cookie" }; CaptchaCookie = new HiddenItem("") { Name = "Captcha Cookie" };
Instructions = new DisplayItem(instructionMessageOptional) { Name = "" };
} }
} }
} }