New: Update MonoTorrent from nuget

This commit is contained in:
ta264
2020-02-03 21:01:29 +00:00
parent 705c7c9b0e
commit 2e6094beb6
29 changed files with 4 additions and 4206 deletions
@@ -206,7 +206,7 @@ namespace NzbDrone.Core.Download
try
{
hash = new MagnetLink(magnetUrl).InfoHash.ToHex();
hash = InfoHash.FromMagnetLink(magnetUrl).ToHex();
}
catch (FormatException ex)
{
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Xml.Linq;
using MonoTorrent;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Parser.Model;
@@ -51,8 +52,7 @@ namespace NzbDrone.Core.Indexers
{
try
{
var magnetLink = new MonoTorrent.MagnetLink(magnetUrl);
return magnetLink.InfoHash.ToHex();
return InfoHash.FromMagnetLink(magnetUrl).ToHex();
}
catch
{
+1 -1
View File
@@ -18,10 +18,10 @@
<PackageReference Include="SpotifyAPI.Web" Version="4.2.2" />
<PackageReference Include="SixLabors.ImageSharp" Version="1.0.0-beta0007" />
<PackageReference Include="Equ" Version="2.2.0" />
<PackageReference Include="MonoTorrent" Version="1.0.11" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Marr.Data\Marr.Data.csproj" />
<ProjectReference Include="..\MonoTorrent\MonoTorrent.csproj" />
<ProjectReference Include="..\NzbDrone.Common\Lidarr.Common.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">