diff --git a/src/NzbDrone.Core/IndexerSearch/NewznabResults.cs b/src/NzbDrone.Core/IndexerSearch/NewznabResults.cs index 9943d3d82..2845b8972 100644 --- a/src/NzbDrone.Core/IndexerSearch/NewznabResults.cs +++ b/src/NzbDrone.Core/IndexerSearch/NewznabResults.cs @@ -76,8 +76,12 @@ namespace NzbDrone.Core.IndexerSearch select new XElement("item", new XElement("title", RemoveInvalidXMLChars(r.Title)), new XElement("description", RemoveInvalidXMLChars(r.Description)), - new XElement("guid", r.Guid), // GUID and (Link or Magnet) are mandatory - new XElement("prowlarrindexer", new XAttribute("id", r.IndexerId), r.Indexer), + new XElement("guid", r.Guid), // GUID and (Link or Magnet) are mandatory + new XElement( + "prowlarrindexer", + new XAttribute("id", r.IndexerId), + new XAttribute("type", r.IndexerPrivacy switch { IndexerPrivacy.Private => "private", IndexerPrivacy.Public => "public", _ => "semi-private" }), + r.Indexer), 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), diff --git a/src/NzbDrone.Core/Indexers/IndexerBase.cs b/src/NzbDrone.Core/Indexers/IndexerBase.cs index 8164c0345..e16f6b342 100644 --- a/src/NzbDrone.Core/Indexers/IndexerBase.cs +++ b/src/NzbDrone.Core/Indexers/IndexerBase.cs @@ -128,6 +128,7 @@ namespace NzbDrone.Core.Indexers c.IndexerId = Definition.Id; c.Indexer = Definition.Name; c.DownloadProtocol = Protocol; + c.IndexerPrivacy = ((IndexerDefinition)Definition).Privacy; c.IndexerPriority = ((IndexerDefinition)Definition).Priority; if (Protocol == DownloadProtocol.Torrent) diff --git a/src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs b/src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs index 22827f43c..7d8c83d50 100644 --- a/src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs +++ b/src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs @@ -25,6 +25,7 @@ namespace NzbDrone.Core.Parser.Model public int IndexerId { get; set; } public string Indexer { get; set; } public int IndexerPriority { get; set; } + public IndexerPrivacy IndexerPrivacy { get; set; } public DownloadProtocol DownloadProtocol { get; set; } public int? Grabs { get; set; } public int? Files { get; set; }