diff --git a/src/Jackett/Content/logos/speedcd.png b/src/Jackett/Content/logos/speedcd.png new file mode 100644 index 000000000..7dd781b46 Binary files /dev/null and b/src/Jackett/Content/logos/speedcd.png differ diff --git a/src/Jackett/Indexers/SpeedCD.cs b/src/Jackett/Indexers/SpeedCD.cs index 6e43d55e1..62aebd225 100644 --- a/src/Jackett/Indexers/SpeedCD.cs +++ b/src/Jackett/Indexers/SpeedCD.cs @@ -1,5 +1,8 @@ using CsQuery; +using Jackett.Models; +using Jackett.Utils; using Newtonsoft.Json.Linq; +using NLog; using System; using System.Collections.Generic; using System.Globalization; @@ -13,11 +16,11 @@ using System.Web; namespace Jackett.Indexers { - public class SpeedCD : IndexerInterface + public class SpeedCD : IIndexer { - public event Action OnSaveConfigurationRequested; + public event Action OnSaveConfigurationRequested; - public event Action OnResultParsingError; + public event Action OnResultParsingError; public string DisplayName { get { return "Speed.cd"; } } @@ -37,11 +40,13 @@ namespace Jackett.Indexers CookieContainer cookies; HttpClientHandler handler; HttpClient client; + Logger logger; public bool IsConfigured { get; private set; } - public SpeedCD() + public SpeedCD(Logger l) { + logger = l; IsConfigured = false; cookies = new CookieContainer(); handler = new HttpClientHandler @@ -94,7 +99,7 @@ namespace Jackett.Indexers public void LoadFromSavedConfiguration(JToken jsonConfig) { - cookies.FillFromJson(new Uri(BaseUrl), jsonConfig); + cookies.FillFromJson(new Uri(BaseUrl), jsonConfig, logger); IsConfigured = true; } diff --git a/src/Jackett/Jackett.csproj b/src/Jackett/Jackett.csproj index ca06f9283..1750a01dc 100644 --- a/src/Jackett/Jackett.csproj +++ b/src/Jackett/Jackett.csproj @@ -139,6 +139,7 @@ + @@ -241,6 +242,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest