New: (Cardigann) ImdbId and Description are optional

pull/605/head
Qstick 3 years ago
parent 2c0c6aa158
commit 6200c9e496

@ -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 =
{

@ -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;

Loading…
Cancel
Save