Fixed: (Cardigann) Deprecate noappend for category and categorydesc

This commit is contained in:
Bogdan
2024-03-30 16:46:30 +02:00
parent 6a1e01abbd
commit 5447fad1fc

View File

@@ -502,6 +502,11 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann
value = release.Description; value = release.Description;
break; break;
case "category": case "category":
if (fieldModifiers.Contains("noappend"))
{
_logger.Warn("The \"noappend\" modifier is deprecated. Please switch to \"default\". See the Definition Format in the Wiki for more information.");
}
var cats = _categories.MapTrackerCatToNewznab(value); var cats = _categories.MapTrackerCatToNewznab(value);
if (cats.Any()) if (cats.Any())
{ {
@@ -518,6 +523,11 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann
value = release.Categories.ToString(); value = release.Categories.ToString();
break; break;
case "categorydesc": case "categorydesc":
if (fieldModifiers.Contains("noappend"))
{
_logger.Warn("The \"noappend\" modifier is deprecated. Please switch to \"default\". See the Definition Format in the Wiki for more information.");
}
var catsDesc = _categories.MapTrackerCatDescToNewznab(value); var catsDesc = _categories.MapTrackerCatDescToNewznab(value);
if (catsDesc.Any()) if (catsDesc.Any())
{ {