Add year to XML results

pull/1889/head
Bogdan 8 months ago
parent 6e7bf55dbd
commit 75c30dd318

@ -108,6 +108,7 @@ namespace NzbDrone.Core.IndexerSearch
GetNabElement("files", r.Files, protocol),
GetNabElement("grabs", r.Grabs, protocol),
GetNabElement("peers", t.Peers, protocol),
r.Year == 0 ? null : GetNabElement("year", r.Year, protocol),
GetNabElement("author", RemoveInvalidXMLChars(r.Author), protocol),
GetNabElement("booktitle", RemoveInvalidXMLChars(r.BookTitle), protocol),
GetNabElement("artist", RemoveInvalidXMLChars(r.Artist), protocol),

@ -74,6 +74,7 @@ namespace NzbDrone.Core.Indexers.Definitions.PassThePopcorn
{
Guid = $"PassThePopcorn-{id}",
Title = torrent.ReleaseName,
Year = int.Parse(result.Year),
InfoUrl = GetInfoUrl(result.GroupId, id),
DownloadUrl = GetDownloadUrl(id, jsonResponse.AuthKey, jsonResponse.PassKey),
Categories = new List<IndexerCategory> { NewznabStandardCategory.Movies },

Loading…
Cancel
Save