New: (Cardigann) ImdbId and Description are optional

This commit is contained in:
Qstick 2021-11-13 17:37:44 -06:00
parent 2c0c6aa158
commit 6200c9e496
2 changed files with 2 additions and 1 deletions

View file

@ -28,7 +28,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
protected readonly List<CategoryMapping> _categoryMapping = new List<CategoryMapping>();
protected readonly List<string> _defaultCategories = new List<string>();
protected readonly string[] OptionalFields = new string[] { "imdb", "rageid", "tvdbid", "banner" };
protected readonly string[] OptionalFields = new string[] { "imdb", "imdbid", "rageid", "tvdbid", "banner", "description" };
protected static readonly string[] _SupportedLogicFunctions =
{

View file

@ -490,6 +490,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
value = release.MinimumSeedTime.ToString();
break;
case "imdb":
case "imdbid":
release.ImdbId = (int)ParseUtil.GetLongFromString(value);
value = release.ImdbId.ToString();
break;