mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-27 23:16:58 -04:00
Fixed: (TorrentIndexerBase) Validate downloaded torrent data
This commit is contained in:
@@ -189,6 +189,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
|
||||
if (request.Url.Scheme == "magnet")
|
||||
{
|
||||
ValidateMagnet(request.Url.FullUri);
|
||||
|
||||
return Encoding.UTF8.GetBytes(request.Url.FullUri);
|
||||
}
|
||||
|
||||
@@ -233,6 +234,8 @@ namespace NzbDrone.Core.Indexers.Cardigann
|
||||
throw;
|
||||
}
|
||||
|
||||
ValidateTorrent(downloadBytes);
|
||||
|
||||
return downloadBytes;
|
||||
}
|
||||
|
||||
|
||||
@@ -112,6 +112,8 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
_logger.Error("Download failed");
|
||||
}
|
||||
|
||||
ValidateTorrent(downloadBytes);
|
||||
|
||||
return downloadBytes;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,6 +94,8 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
_logger.Error("Download failed");
|
||||
}
|
||||
|
||||
ValidateTorrent(downloadBytes);
|
||||
|
||||
return downloadBytes;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,6 +111,7 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
if (link.Scheme == "magnet")
|
||||
{
|
||||
ValidateMagnet(link.OriginalString);
|
||||
|
||||
return Encoding.UTF8.GetBytes(link.OriginalString);
|
||||
}
|
||||
|
||||
@@ -164,6 +165,8 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||
throw;
|
||||
}
|
||||
|
||||
ValidateTorrent(torrentData);
|
||||
|
||||
return torrentData;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user