Fixed: (Cardigann) Fails when Int variables used in requests

This commit is contained in:
Qstick
2021-11-27 20:50:58 -06:00
parent eff8fdebf5
commit d61ce3f27c
3 changed files with 17 additions and 10 deletions
@@ -9,6 +9,7 @@ namespace NzbDrone.Core.IndexerSearch.Definitions
public string ImdbId { get; set; }
public int? TmdbId { get; set; }
public int? TraktId { get; set; }
public int? Year { get; set; }
public override bool RssSearch
{
@@ -48,6 +49,11 @@ namespace NzbDrone.Core.IndexerSearch.Definitions
builder = builder.Append($" IMDbId:[{ImdbId}]");
}
if (Year.HasValue)
{
builder = builder.Append($" Year:[{Year}]");
}
if (TmdbId.HasValue)
{
builder = builder.Append($" TMDbId:[{TmdbId}]");