1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-01 12:46:23 +00:00

speedapp: change login username to email. resolves #10226 (#10444)

This commit is contained in:
Diego Heras 2020-12-08 12:28:59 +01:00 committed by GitHub
parent 4330207a6d
commit 222c02f28a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,11 +26,12 @@ namespace Jackett.Common.Indexers
{"Accept", "application/json"},
{"Content-Type", "application/json"}
};
// API DOC: https://speedapp.io/api/doc
private string LoginUrl => SiteLink + "api/login";
private string SearchUrl => SiteLink + "api/torrent";
private string _token;
private new ConfigurationDataBasicLogin configData => (ConfigurationDataBasicLogin)base.configData;
private new ConfigurationDataBasicLoginWithEmail configData => (ConfigurationDataBasicLoginWithEmail)base.configData;
public override string[] LegacySiteLinks { get; protected set; } = {
"https://www.icetorrent.org/",
@ -72,7 +73,7 @@ namespace Jackett.Common.Indexers
client: wc,
logger: l,
p: ps,
configData: new ConfigurationDataBasicLogin())
configData: new ConfigurationDataBasicLoginWithEmail())
{
Encoding = Encoding.UTF8;
Language = "ro-ro";
@ -143,7 +144,7 @@ namespace Jackett.Common.Indexers
{
var body = new Dictionary<string, string>
{
{ "username", configData.Username.Value.Trim() },
{ "username", configData.Email.Value.Trim() },
{ "password", configData.Password.Value.Trim() }
};
var jsonData = JsonConvert.SerializeObject(body);