Cleanup StringUtil

This commit is contained in:
Qstick
2023-02-26 15:39:40 -06:00
parent 7b244b022c
commit dbeb725cda
7 changed files with 24 additions and 167 deletions

View File

@@ -1,16 +1,14 @@
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using FluentValidation;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using NLog;
using NzbDrone.Common;
using NzbDrone.Common.Http;
using NzbDrone.Core.Annotations;
using NzbDrone.Core.Configuration;
@@ -454,7 +452,7 @@ namespace NzbDrone.Core.Indexers.Definitions
{
var fileName = torrent.Files.First().FileName;
var guid = new Uri(details + "&nh=" + StringUtil.Hash(fileName));
var guid = new Uri(details + "&nh=" + HashUtil.CalculateMd5(fileName));
var release = new TorrentInfo
{
@@ -487,7 +485,7 @@ namespace NzbDrone.Core.Indexers.Definitions
$"{title} {year} {releaseGroup}{infoString}" :
$"{releaseGroup}{title} {releaseInfo} {infoString}";
var guid = new Uri(details + "&nh=" + StringUtil.Hash(title));
var guid = new Uri(details + "&nh=" + HashUtil.CalculateMd5(title));
var release = new TorrentInfo
{