Skip to content

Commit

Permalink
speedapp: change login username to email. resolves Jackett#10226 (Jac…
Browse files Browse the repository at this point in the history
  • Loading branch information
ngosang authored Dec 8, 2020
1 parent 4330207 commit 222c02f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Jackett.Common/Indexers/SpeedApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ public class SpeedApp : BaseWebIndexer
{"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/",
Expand Down Expand Up @@ -72,7 +73,7 @@ public SpeedApp(IIndexerConfigurationService configService, WebClient wc, Logger
client: wc,
logger: l,
p: ps,
configData: new ConfigurationDataBasicLogin())
configData: new ConfigurationDataBasicLoginWithEmail())
{
Encoding = Encoding.UTF8;
Language = "ro-ro";
Expand Down Expand Up @@ -143,7 +144,7 @@ private async Task RenewalTokenAsync()
{
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);
Expand Down

0 comments on commit 222c02f

Please sign in to comment.