diff --git a/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs b/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs index e8e799ca9..e4965d920 100644 --- a/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs +++ b/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs @@ -29,7 +29,7 @@ namespace NzbDrone.Core.IndexerVersions /* Update Service will fall back if version # does not exist for an indexer per Ta */ private const string DEFINITION_BRANCH = "master"; - private const int DEFINITION_VERSION = 7; + private const int DEFINITION_VERSION = 8; //Used when moving yml to C# private readonly List _defintionBlocklist = new List() diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannBase.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannBase.cs index 0e3900295..a39a050da 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannBase.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannBase.cs @@ -2,7 +2,7 @@ using System; using System.Collections; using System.Collections.Generic; using System.Linq; -using System.Security.Cryptography; +using System.Net; using System.Text; using System.Text.RegularExpressions; using AngleSharp.Dom; @@ -680,6 +680,12 @@ namespace NzbDrone.Core.Indexers.Cardigann case "urlencode": data = data.UrlEncode(_encoding); break; + case "htmldecode": + data = WebUtility.HtmlDecode(data); + break; + case "htmlencode": + data = WebUtility.HtmlEncode(data); + break; case "timeago": case "reltime": data = DateTimeUtil.FromTimeAgo(data).ToString(DateTimeUtil.Rfc1123ZPattern);