mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 05:47:22 -04:00
Prevent NullRef in Nebulance with null TvMazeIds
This commit is contained in:
parent
f1c01343bf
commit
29f1c36f54
1 changed files with 5 additions and 1 deletions
|
@ -265,7 +265,6 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||
Grabs = ParseUtil.CoerceInt(row.Snatch),
|
||||
Seeders = ParseUtil.CoerceInt(row.Seed),
|
||||
Peers = ParseUtil.CoerceInt(row.Seed) + ParseUtil.CoerceInt(row.Leech),
|
||||
TvMazeId = ParseUtil.CoerceInt(row.TvMazeId),
|
||||
Scene = row.Tags?.ContainsIgnoreCase("scene"),
|
||||
MinimumRatio = 0, // ratioless
|
||||
MinimumSeedTime = row.Category.ToLower() == "season" ? 432000 : 86400, // 120 hours for seasons and 24 hours for episodes
|
||||
|
@ -273,6 +272,11 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||
UploadVolumeFactor = 1
|
||||
};
|
||||
|
||||
if (row.TvMazeId.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
release.TvMazeId = ParseUtil.CoerceInt(row.TvMazeId);
|
||||
}
|
||||
|
||||
torrentInfos.Add(release);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue