mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-21 04:10:52 +02:00
Fixed: (Cardigann) Deprecate noappend for category and categorydesc
This commit is contained in:
parent
6a1e01abbd
commit
5447fad1fc
1 changed files with 10 additions and 0 deletions
|
|
@ -502,6 +502,11 @@ private string ParseFields(string value, string fieldName, TorrentInfo release,
|
|||
value = release.Description;
|
||||
break;
|
||||
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);
|
||||
if (cats.Any())
|
||||
{
|
||||
|
|
@ -518,6 +523,11 @@ private string ParseFields(string value, string fieldName, TorrentInfo release,
|
|||
value = release.Categories.ToString();
|
||||
break;
|
||||
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);
|
||||
if (catsDesc.Any())
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue