Fixed: (Cardigann) Bump to v8

This commit is contained in:
Bogdan
2023-01-15 20:03:36 +02:00
committed by Qstick
parent a11bd1c3c7
commit 1529527af9
2 changed files with 8 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ namespace NzbDrone.Core.IndexerVersions
/* Update Service will fall back if version # does not exist for an indexer per Ta */ /* Update Service will fall back if version # does not exist for an indexer per Ta */
private const string DEFINITION_BRANCH = "master"; private const string DEFINITION_BRANCH = "master";
private const int DEFINITION_VERSION = 7; private const int DEFINITION_VERSION = 8;
//Used when moving yml to C# //Used when moving yml to C#
private readonly List<string> _defintionBlocklist = new List<string>() private readonly List<string> _defintionBlocklist = new List<string>()

View File

@@ -2,7 +2,7 @@ using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Security.Cryptography; using System.Net;
using System.Text; using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using AngleSharp.Dom; using AngleSharp.Dom;
@@ -680,6 +680,12 @@ namespace NzbDrone.Core.Indexers.Cardigann
case "urlencode": case "urlencode":
data = data.UrlEncode(_encoding); data = data.UrlEncode(_encoding);
break; break;
case "htmldecode":
data = WebUtility.HtmlDecode(data);
break;
case "htmlencode":
data = WebUtility.HtmlEncode(data);
break;
case "timeago": case "timeago":
case "reltime": case "reltime":
data = DateTimeUtil.FromTimeAgo(data).ToString(DateTimeUtil.Rfc1123ZPattern); data = DateTimeUtil.FromTimeAgo(data).ToString(DateTimeUtil.Rfc1123ZPattern);