mirror of
https://github.com/Sonarr/Sonarr
synced 2025-12-06 16:32:24 +01:00
parent
4b50861a6b
commit
1d28f395cd
4 changed files with 4 additions and 4 deletions
|
|
@ -221,7 +221,7 @@ private string DownloadFromMagnetUrl(RemoteEpisode remoteEpisode, IIndexer index
|
|||
|
||||
try
|
||||
{
|
||||
hash = MagnetLink.Parse(magnetUrl).InfoHash.ToHex();
|
||||
hash = MagnetLink.Parse(magnetUrl).InfoHashes.V1OrV2.ToHex();
|
||||
}
|
||||
catch (FormatException ex)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ protected virtual string GetInfoHash(XElement item)
|
|||
{
|
||||
try
|
||||
{
|
||||
return MagnetLink.Parse(magnetUrl).InfoHash.ToHex();
|
||||
return MagnetLink.Parse(magnetUrl).InfoHashes.V1OrV2.ToHex();
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public string GetHashFromTorrentFile(byte[] fileContents)
|
|||
{
|
||||
try
|
||||
{
|
||||
return Torrent.Load(fileContents).InfoHash.ToHex();
|
||||
return Torrent.Load(fileContents).InfoHashes.V1OrV2.ToHex();
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.7" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="NLog" Version="5.3.4" />
|
||||
<PackageReference Include="MonoTorrent" Version="2.0.7" />
|
||||
<PackageReference Include="MonoTorrent" Version="3.0.2" />
|
||||
<PackageReference Include="System.Data.SQLite.Core.Servarr" Version="1.0.115.5-18" />
|
||||
<PackageReference Include="System.Text.Json" Version="8.0.5" />
|
||||
<PackageReference Include="Npgsql" Version="9.0.3" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue