mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Cleanup StringUtil
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user