2020-02-09 02:35:16 +00:00
namespace Jackett.Common.Models.IndexerConfig
2015-07-13 02:01:02 +00:00
{
public class ConfigurationDataCookie : ConfigurationData
{
2021-03-16 23:29:26 +00:00
public StringConfigurationItem Cookie { get ; private set ; }
public DisplayInfoConfigurationItem CookieInstructions { get ; private set ; }
public DisplayInfoConfigurationItem Instructions { get ; private set ; }
2015-07-13 02:01:02 +00:00
2020-03-31 20:26:07 +00:00
public ConfigurationDataCookie ( string instructionMessageOptional = null )
2015-07-13 02:01:02 +00:00
{
2021-03-16 23:29:26 +00:00
Cookie = new StringConfigurationItem ( "Cookie" ) ;
2021-05-16 18:13:54 +00:00
CookieInstructions = new DisplayInfoConfigurationItem ( "Cookie Instructions" ,
2020-02-22 19:31:38 +00:00
"Please enter the cookie for the site manually. <a href=\"https://github.com/Jackett/Jackett/wiki/Finding-cookies\" target=\"_blank\">See here</a> on how get the cookies." +
2021-03-16 23:29:26 +00:00
"<br>Example cookie header (usually longer than this):<br><code>PHPSESSID=8rk27odm; ipsconnect_63ad9c=1; more_stuff=etc;</code>" ) ;
Instructions = new DisplayInfoConfigurationItem ( "" , instructionMessageOptional ) ;
2015-07-13 02:01:02 +00:00
}
}
}