mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
New: Update MonoTorrent from nuget
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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'">
|
||||
|
||||
Reference in New Issue
Block a user