diff --git a/src/NzbDrone.Core/IndexerSearch/NewznabResults.cs b/src/NzbDrone.Core/IndexerSearch/NewznabResults.cs index f747f9fd3..8b86dfc76 100644 --- a/src/NzbDrone.Core/IndexerSearch/NewznabResults.cs +++ b/src/NzbDrone.Core/IndexerSearch/NewznabResults.cs @@ -80,13 +80,13 @@ namespace NzbDrone.Core.IndexerSearch r.InfoUrl == null ? null : new XElement("comments", r.InfoUrl), r.PublishDate == DateTime.MinValue ? new XElement("pubDate", XmlDateFormat(DateTime.Now)) : new XElement("pubDate", XmlDateFormat(r.PublishDate)), new XElement("size", r.Size), - r.Category == null ? null : from c in r.Category select new XElement("category", c.Id), + r.Categories == null ? null : from c in r.Categories select new XElement("category", c.Id), new XElement( "enclosure", new XAttribute("url", r.DownloadUrl ?? t.MagnetUrl ?? string.Empty), r.Size == null ? null : new XAttribute("length", r.Size), new XAttribute("type", protocol == DownloadProtocol.Torrent ? "application/x-bittorrent" : "application/x-nzb")), - r.Category == null ? null : from c in r.Category select GetNabElement("category", c.Id, protocol), + r.Categories == null ? null : from c in r.Categories select GetNabElement("category", c.Id, protocol), r.IndexerFlags == null ? null : from f in r.IndexerFlags select GetNabElement("tag", f.Name, protocol), GetNabElement("rageid", r.TvRageId, protocol), GetNabElement("thetvdb", r.TvdbId, protocol), diff --git a/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs b/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs index b740edf5a..77ac43f61 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs @@ -449,7 +449,7 @@ namespace NzbDrone.Core.Indexers.Definitions Guid = guid.AbsoluteUri, DownloadUrl = linkUri.AbsoluteUri, PublishDate = publishDate, - Category = category, + Categories = category, Description = description, Size = size, Seeders = seeders, diff --git a/src/NzbDrone.Core/Indexers/Definitions/AnimeTorrents.cs b/src/NzbDrone.Core/Indexers/Definitions/AnimeTorrents.cs index e2a071ac0..30e9a3347 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/AnimeTorrents.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/AnimeTorrents.cs @@ -294,7 +294,7 @@ namespace NzbDrone.Core.Indexers.Definitions rCat = rCat.Substring(rCatIdx + 4); } - release.Category = _categories.MapTrackerCatToNewznab(rCat); + release.Categories = _categories.MapTrackerCatToNewznab(rCat); if (row.QuerySelector("img[alt=\"Gold Torrent\"]") != null) { diff --git a/src/NzbDrone.Core/Indexers/Definitions/Avistaz/AvistazParser.cs b/src/NzbDrone.Core/Indexers/Definitions/Avistaz/AvistazParser.cs index 2ecb0e228..100ce0a8c 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Avistaz/AvistazParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Avistaz/AvistazParser.cs @@ -50,7 +50,7 @@ namespace NzbDrone.Core.Indexers.Definitions.Avistaz InfoHash = row.InfoHash, InfoUrl = details, Guid = details, - Category = cats, + Categories = cats, PublishDate = row.CreatedAt, Size = row.FileSize, Files = row.FileCount, diff --git a/src/NzbDrone.Core/Indexers/Definitions/BakaBT.cs b/src/NzbDrone.Core/Indexers/Definitions/BakaBT.cs index 96d2deb89..a31250071 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/BakaBT.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/BakaBT.cs @@ -297,7 +297,7 @@ namespace NzbDrone.Core.Indexers.Definitions release.Title = release.Title.Substring(0, insertPoint) + " Season 1 " + release.Title.Substring(insertPoint); } - release.Category = currentCategories; + release.Categories = currentCategories; //release.Description = row.QuerySelector("span.tags")?.TextContent; release.Guid = _baseUrl + qTitleLink.GetAttribute("href"); diff --git a/src/NzbDrone.Core/Indexers/Definitions/BeyondHD.cs b/src/NzbDrone.Core/Indexers/Definitions/BeyondHD.cs index 9872393e9..d8959b40b 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/BeyondHD.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/BeyondHD.cs @@ -209,7 +209,7 @@ namespace NzbDrone.Core.Indexers.Definitions InfoHash = row.InfoHash, InfoUrl = details, Guid = details, - Category = _categories.MapTrackerCatDescToNewznab(row.Category), + Categories = _categories.MapTrackerCatDescToNewznab(row.Category), PublishDate = DateTime.Parse(row.CreatedAt, CultureInfo.InvariantCulture), Size = row.Size, Grabs = row.Grabs, diff --git a/src/NzbDrone.Core/Indexers/Definitions/BroadcastheNet/BroadcastheNetParser.cs b/src/NzbDrone.Core/Indexers/Definitions/BroadcastheNet/BroadcastheNetParser.cs index d75777c04..e510480b0 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/BroadcastheNet/BroadcastheNetParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/BroadcastheNet/BroadcastheNetParser.cs @@ -104,12 +104,12 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet torrentInfo.DownloadVolumeFactor = 0; torrentInfo.MinimumRatio = 1; - torrentInfo.Category = _categories.MapTrackerCatToNewznab(torrent.Resolution); + torrentInfo.Categories = _categories.MapTrackerCatToNewznab(torrent.Resolution); // Default to TV if category could not be mapped - if (torrentInfo.Category == null || !torrentInfo.Category.Any()) + if (torrentInfo.Categories == null || !torrentInfo.Categories.Any()) { - torrentInfo.Category = new List { NewznabStandardCategory.TV }; + torrentInfo.Categories = new List { NewznabStandardCategory.TV }; } results.Add(torrentInfo); diff --git a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannParser.cs b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannParser.cs index 72b519276..0947d3246 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Cardigann/CardigannParser.cs @@ -194,17 +194,17 @@ namespace NzbDrone.Core.Indexers.Cardigann var cats = MapTrackerCatToNewznab(value); if (cats.Any()) { - if (release.Category == null || fieldModifiers.Contains("noappend")) + if (release.Categories == null || fieldModifiers.Contains("noappend")) { - release.Category = cats; + release.Categories = cats; } else { - release.Category = release.Category.Union(cats).ToList(); + release.Categories = release.Categories.Union(cats).ToList(); } } - value = release.Category.ToString(); + value = release.Categories.ToString(); break; case "size": release.Size = ReleaseInfo.GetBytes(value); diff --git a/src/NzbDrone.Core/Indexers/Definitions/DigitalCore.cs b/src/NzbDrone.Core/Indexers/Definitions/DigitalCore.cs index ffea90272..ae47873aa 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/DigitalCore.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/DigitalCore.cs @@ -262,7 +262,7 @@ namespace NzbDrone.Core.Indexers.Definitions release.MinimumRatio = 1.1; release.MinimumSeedTime = 432000; // 120 hours release.Title = row.name; - release.Category = _categories.MapTrackerCatToNewznab(row.category.ToString()); + release.Categories = _categories.MapTrackerCatToNewznab(row.category.ToString()); release.Size = row.size; release.Seeders = row.seeders; release.Peers = row.leechers + release.Seeders; diff --git a/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListParser.cs b/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListParser.cs index 45bf87006..bd42de057 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListParser.cs @@ -59,7 +59,7 @@ namespace NzbDrone.Core.Indexers.FileList Guid = string.Format("FileList-{0}", id), Title = result.Name, Size = result.Size, - Category = _categories.MapTrackerCatDescToNewznab(result.Category), + Categories = _categories.MapTrackerCatDescToNewznab(result.Category), DownloadUrl = GetDownloadUrl(id), InfoUrl = GetInfoUrl(id), Seeders = result.Seeders, diff --git a/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleParser.cs b/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleParser.cs index ec14a6338..f6bf81afc 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Gazelle/GazelleParser.cs @@ -88,11 +88,11 @@ namespace NzbDrone.Core.Indexers.Gazelle var category = torrent.Category; if (category == null || category.Contains("Select Category")) { - release.Category = _capabilities.Categories.MapTrackerCatToNewznab("1"); + release.Categories = _capabilities.Categories.MapTrackerCatToNewznab("1"); } else { - release.Category = _capabilities.Categories.MapTrackerCatDescToNewznab(category); + release.Categories = _capabilities.Categories.MapTrackerCatDescToNewznab(category); } torrentInfos.Add(release); @@ -120,11 +120,11 @@ namespace NzbDrone.Core.Indexers.Gazelle var category = result.Category; if (category == null || category.Contains("Select Category")) { - release.Category = _capabilities.Categories.MapTrackerCatToNewznab("1"); + release.Categories = _capabilities.Categories.MapTrackerCatToNewznab("1"); } else { - release.Category = _capabilities.Categories.MapTrackerCatDescToNewznab(category); + release.Categories = _capabilities.Categories.MapTrackerCatDescToNewznab(category); } torrentInfos.Add(release); diff --git a/src/NzbDrone.Core/Indexers/Definitions/HDTorrents.cs b/src/NzbDrone.Core/Indexers/Definitions/HDTorrents.cs index b1d108555..45f895171 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/HDTorrents.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/HDTorrents.cs @@ -335,7 +335,7 @@ namespace NzbDrone.Core.Indexers.Definitions DownloadUrl = link.AbsoluteUri, InfoUrl = details.AbsoluteUri, PublishDate = publishDate, - Category = cat, + Categories = cat, ImdbId = imdb ?? 0, Size = size, Grabs = grabs, diff --git a/src/NzbDrone.Core/Indexers/Definitions/IPTorrents.cs b/src/NzbDrone.Core/Indexers/Definitions/IPTorrents.cs index 172adc680..5b4e7895c 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/IPTorrents.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/IPTorrents.cs @@ -308,7 +308,7 @@ namespace NzbDrone.Core.Indexers.Definitions DownloadUrl = link.AbsoluteUri, InfoUrl = details.AbsoluteUri, PublishDate = publishDate, - Category = cat, + Categories = cat, Size = size, Files = files, Grabs = grabs, diff --git a/src/NzbDrone.Core/Indexers/Definitions/ImmortalSeed.cs b/src/NzbDrone.Core/Indexers/Definitions/ImmortalSeed.cs index f9e3ea1c3..ab0ea72fc 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/ImmortalSeed.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/ImmortalSeed.cs @@ -290,7 +290,7 @@ namespace NzbDrone.Core.Indexers.Definitions catLink = catLink.Substring(catSplit + 9); } - release.Category = _categories.MapTrackerCatToNewznab(catLink); + release.Categories = _categories.MapTrackerCatToNewznab(catLink); var grabs = row.QuerySelector("td:nth-child(6)").TextContent; release.Grabs = ParseUtil.CoerceInt(grabs); diff --git a/src/NzbDrone.Core/Indexers/Definitions/Milkie.cs b/src/NzbDrone.Core/Indexers/Definitions/Milkie.cs index 06aef33e3..7be0accfb 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Milkie.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Milkie.cs @@ -198,7 +198,7 @@ namespace NzbDrone.Core.Indexers.Definitions InfoUrl = details, Guid = details, PublishDate = publishDate, - Category = _categories.MapTrackerCatToNewznab(torrent.Category.ToString()), + Categories = _categories.MapTrackerCatToNewznab(torrent.Category.ToString()), Size = torrent.Size, Seeders = torrent.Seeders, Peers = torrent.Seeders + torrent.PartialSeeders + torrent.Leechers, diff --git a/src/NzbDrone.Core/Indexers/Definitions/MyAnonamouse.cs b/src/NzbDrone.Core/Indexers/Definitions/MyAnonamouse.cs index 9aa98f931..ca59077cf 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/MyAnonamouse.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/MyAnonamouse.cs @@ -329,7 +329,7 @@ namespace NzbDrone.Core.Indexers.Definitions } var category = item.Category; - release.Category = _categories.MapTrackerCatToNewznab(category); + release.Categories = _categories.MapTrackerCatToNewznab(category); release.DownloadUrl = _baseUrl + "/tor/download.php?tid=" + id; release.InfoUrl = _baseUrl + "/t/" + id; diff --git a/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornParser.cs b/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornParser.cs index 778db934f..16882518f 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornParser.cs @@ -112,7 +112,7 @@ namespace NzbDrone.Core.Indexers.PassThePopcorn MinimumSeedTime = 345600, DownloadVolumeFactor = free ? 0 : 1, UploadVolumeFactor = 1, - Category = new List { NewznabStandardCategory.Movies } + Categories = new List { NewznabStandardCategory.Movies } }); } catch (Exception e) diff --git a/src/NzbDrone.Core/Indexers/Definitions/PreToMe.cs b/src/NzbDrone.Core/Indexers/Definitions/PreToMe.cs index be23cd840..54e28ee37 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/PreToMe.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/PreToMe.cs @@ -360,7 +360,7 @@ namespace NzbDrone.Core.Indexers.Definitions DownloadUrl = link, PublishDate = publishDate, Size = size, - Category = _categories.MapTrackerCatToNewznab(cat), + Categories = _categories.MapTrackerCatToNewznab(cat), Files = files, Grabs = grabs, Seeders = seeders, diff --git a/src/NzbDrone.Core/Indexers/Definitions/Rarbg/RarbgParser.cs b/src/NzbDrone.Core/Indexers/Definitions/Rarbg/RarbgParser.cs index 1dc730c43..dbee316f2 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Rarbg/RarbgParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Rarbg/RarbgParser.cs @@ -58,7 +58,7 @@ namespace NzbDrone.Core.Indexers.Rarbg var torrentInfo = new TorrentInfo(); torrentInfo.Guid = GetGuid(torrent); - torrentInfo.Category = _capabilities.Categories.MapTrackerCatDescToNewznab(torrent.category); + torrentInfo.Categories = _capabilities.Categories.MapTrackerCatDescToNewznab(torrent.category); torrentInfo.Title = torrent.title; torrentInfo.Size = torrent.size; torrentInfo.DownloadUrl = torrent.download; diff --git a/src/NzbDrone.Core/Indexers/Definitions/RevolutionTT.cs b/src/NzbDrone.Core/Indexers/Definitions/RevolutionTT.cs index 00918a564..065bc5003 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/RevolutionTT.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/RevolutionTT.cs @@ -307,7 +307,7 @@ namespace NzbDrone.Core.Indexers.Definitions Peers = seeders + leechers, Grabs = (int)grabs, Files = (int)files, - Category = _categories.MapTrackerCatToNewznab(category), + Categories = _categories.MapTrackerCatToNewznab(category), ImdbId = imdb ?? 0, MinimumRatio = 1, MinimumSeedTime = 172800, // 48 hours diff --git a/src/NzbDrone.Core/Indexers/Definitions/SubsPlease.cs b/src/NzbDrone.Core/Indexers/Definitions/SubsPlease.cs index 86f08824d..ded167882 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/SubsPlease.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/SubsPlease.cs @@ -208,7 +208,7 @@ namespace NzbDrone.Core.Indexers.Definitions InfoUrl = _baseUrl + $"shows/{r.Page}/", PublishDate = r.Release_Date.DateTime, Files = 1, - Category = new List { NewznabStandardCategory.TVAnime }, + Categories = new List { NewznabStandardCategory.TVAnime }, Seeders = 1, Peers = 2, MinimumRatio = 1, diff --git a/src/NzbDrone.Core/Indexers/Definitions/SuperBits.cs b/src/NzbDrone.Core/Indexers/Definitions/SuperBits.cs index 3c6ff65e0..67340bea4 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/SuperBits.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/SuperBits.cs @@ -232,7 +232,7 @@ namespace NzbDrone.Core.Indexers.Definitions release.MinimumRatio = 1.1; release.MinimumSeedTime = 172800; // 48 hours release.Title = row.name; - release.Category = _categories.MapTrackerCatToNewznab(row.category.ToString()); + release.Categories = _categories.MapTrackerCatToNewznab(row.category.ToString()); release.Size = row.size; release.Seeders = row.seeders; release.Peers = row.leechers + release.Seeders; diff --git a/src/NzbDrone.Core/Indexers/Definitions/ThePirateBay.cs b/src/NzbDrone.Core/Indexers/Definitions/ThePirateBay.cs index 49e45eec0..63fac543f 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/ThePirateBay.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/ThePirateBay.cs @@ -239,7 +239,7 @@ namespace NzbDrone.Core.Indexers.Definitions var torrentItem = new TorrentInfo { Title = item.Name, - Category = _categories.MapTrackerCatToNewznab(item.Category.ToString()), + Categories = _categories.MapTrackerCatToNewznab(item.Category.ToString()), Guid = details, InfoUrl = details, InfoHash = item.InfoHash, // magnet link is auto generated from infohash diff --git a/src/NzbDrone.Core/Indexers/Definitions/TorrentDay.cs b/src/NzbDrone.Core/Indexers/Definitions/TorrentDay.cs index ed2355343..9b5153347 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/TorrentDay.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/TorrentDay.cs @@ -245,7 +245,7 @@ namespace NzbDrone.Core.Indexers.Definitions DownloadUrl = link.AbsoluteUri, InfoUrl = details.AbsoluteUri, PublishDate = publishDate, - Category = _categories.MapTrackerCatToNewznab(row.c.ToString()), + Categories = _categories.MapTrackerCatToNewznab(row.c.ToString()), Size = (long)row.size, Files = (int)row.files, Grabs = (int)row.completed, diff --git a/src/NzbDrone.Core/Indexers/Definitions/TorrentLeech.cs b/src/NzbDrone.Core/Indexers/Definitions/TorrentLeech.cs index a9f5d0108..7cd15a59f 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/TorrentLeech.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/TorrentLeech.cs @@ -305,7 +305,7 @@ namespace NzbDrone.Core.Indexers.Definitions Guid = details.AbsoluteUri, DownloadUrl = link.AbsoluteUri, PublishDate = publishDate, - Category = cats, + Categories = cats, Size = size, Grabs = grabs, Seeders = seeders, diff --git a/src/NzbDrone.Core/Indexers/Definitions/TorrentSeeds.cs b/src/NzbDrone.Core/Indexers/Definitions/TorrentSeeds.cs index 9d9a8791a..2e83f5793 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/TorrentSeeds.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/TorrentSeeds.cs @@ -299,7 +299,7 @@ namespace NzbDrone.Core.Indexers.Definitions release.MinimumSeedTime = 72 * 60 * 60; var qCatLink = row.QuerySelector("a[href^=\"/browse_elastic.php?cat=\"]"); var catStr = qCatLink.GetAttribute("href").Split('=')[1]; - release.Category = _categories.MapTrackerCatToNewznab(catStr); + release.Categories = _categories.MapTrackerCatToNewznab(catStr); var qDetailsLink = row.QuerySelector("a[href^=\"/details.php?id=\"]"); var qDetailsTitle = row.QuerySelector("td:has(a[href^=\"/details.php?id=\"]) b"); release.Title = qDetailsTitle.TextContent.Trim(); diff --git a/src/NzbDrone.Core/Indexers/Definitions/UNIT3D/Unit3dParser.cs b/src/NzbDrone.Core/Indexers/Definitions/UNIT3D/Unit3dParser.cs index 88e37d043..ec6fabc05 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/UNIT3D/Unit3dParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/UNIT3D/Unit3dParser.cs @@ -54,7 +54,7 @@ namespace NzbDrone.Core.Indexers.Definitions.UNIT3D InfoHash = row.Id, InfoUrl = details, Guid = details, - Category = _categories.MapTrackerCatDescToNewznab(row.Attributes.Category), + Categories = _categories.MapTrackerCatDescToNewznab(row.Attributes.Category), PublishDate = DateTime.Parse(row.Attributes.CreatedAt, CultureInfo.InvariantCulture), Size = row.Attributes.Size, Files = row.Attributes.Files, diff --git a/src/NzbDrone.Core/Indexers/Definitions/ZonaQ.cs b/src/NzbDrone.Core/Indexers/Definitions/ZonaQ.cs index 18ff02974..3653ca7bd 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/ZonaQ.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/ZonaQ.cs @@ -378,7 +378,7 @@ namespace NzbDrone.Core.Indexers.Definitions Guid = details.AbsoluteUri, DownloadUrl = link.AbsoluteUri, PublishDate = publishDate, - Category = cat, + Categories = cat, Size = size, Grabs = grabs, Seeders = seeders, diff --git a/src/NzbDrone.Core/Indexers/RssParser.cs b/src/NzbDrone.Core/Indexers/RssParser.cs index 1811b1b10..daa13b1e9 100644 --- a/src/NzbDrone.Core/Indexers/RssParser.cs +++ b/src/NzbDrone.Core/Indexers/RssParser.cs @@ -160,7 +160,7 @@ namespace NzbDrone.Core.Indexers releaseInfo.DownloadUrl = GetDownloadUrl(item); releaseInfo.InfoUrl = GetInfoUrl(item); releaseInfo.CommentUrl = GetCommentUrl(item); - releaseInfo.Category = GetCategory(item); + releaseInfo.Categories = GetCategory(item); try { diff --git a/src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs b/src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs index f905b4119..e4aa5286e 100644 --- a/src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs +++ b/src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs @@ -11,6 +11,7 @@ namespace NzbDrone.Core.Parser.Model public ReleaseInfo() { IndexerFlags = new List(); + Categories = new List(); } public string Guid { get; set; } @@ -37,7 +38,7 @@ namespace NzbDrone.Core.Parser.Model public string Container { get; set; } public string Codec { get; set; } public string Resolution { get; set; } - public ICollection Category { get; set; } + public ICollection Categories { get; set; } public ICollection IndexerFlags { get; set; } diff --git a/src/Prowlarr.Api.V1/Search/SearchResource.cs b/src/Prowlarr.Api.V1/Search/SearchResource.cs index e75c806aa..8aab4f237 100644 --- a/src/Prowlarr.Api.V1/Search/SearchResource.cs +++ b/src/Prowlarr.Api.V1/Search/SearchResource.cs @@ -65,7 +65,7 @@ namespace Prowlarr.Api.V1.Search CommentUrl = releaseInfo.CommentUrl, DownloadUrl = releaseInfo.DownloadUrl, InfoUrl = releaseInfo.InfoUrl, - Categories = releaseInfo.Category, + Categories = releaseInfo.Categories, //ReleaseWeight MagnetUrl = torrentInfo.MagnetUrl,