1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed: Possible nullRef when setting IndexerFlags in TorznabParser

This commit is contained in:
Qstick 2020-08-16 01:14:47 -04:00
parent ed76709b7f
commit 0ef9d28a73

View File

@ -51,15 +51,16 @@ protected override bool PreProcess(IndexerResponse indexerResponse)
protected override ReleaseInfo ProcessItem(XElement item, ReleaseInfo releaseInfo)
{
var torrentInfo = base.ProcessItem(item, releaseInfo) as TorrentInfo;
if (GetImdbId(item) != null)
{
if (torrentInfo != null)
{
if (GetImdbId(item) != null)
{
torrentInfo.ImdbId = int.Parse(GetImdbId(item).Substring(2));
}
}
torrentInfo.IndexerFlags = GetFlags(item);
}
return torrentInfo;
}