From 1529527af9d2bf09dcd1b540b4c6f95a7dd00bd1 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 15 Jan 2023 20:03:36 +0200 Subject: [PATCH] Fixed: (Cardigann) Bump to v8 --- .../IndexerVersions/IndexerDefinitionUpdateService.cs | 2 +- .../Indexers/Definitions/Cardigann/CardigannBase.cs | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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);