New: (Cardigann) Add season/episode fields

cardigann-season-episode
Bogdan 11 months ago
parent 4561859c2b
commit 33c68e7964

@ -104,6 +104,8 @@ namespace NzbDrone.Core.IndexerSearch
GetNabElement("files", r.Files, protocol),
GetNabElement("grabs", r.Grabs, protocol),
GetNabElement("peers", t.Peers, protocol),
GetNabElement("season", t.Season, protocol),
GetNabElement("episode", RemoveInvalidXMLChars(r.Episode), protocol),
GetNabElement("author", RemoveInvalidXMLChars(r.Author), protocol),
GetNabElement("booktitle", RemoveInvalidXMLChars(r.BookTitle), protocol),
GetNabElement("artist", RemoveInvalidXMLChars(r.Artist), protocol),

@ -644,6 +644,14 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann
release.Year = ParseUtil.CoerceInt(value);
value = release.Year.ToString();
break;
case "season":
release.Season = ParseUtil.CoerceInt(value);
value = release.Season.ToString();
break;
case "episode":
release.Episode = value;
value = release.Episode;
break;
case "author":
release.Author = value;
break;

@ -36,6 +36,8 @@ namespace NzbDrone.Core.Parser.Model
public int TvMazeId { get; set; }
public int DoubanId { get; set; }
public int Year { get; set; }
public int? Season { get; set; }
public string Episode { get; set; }
public string Author { get; set; }
public string BookTitle { get; set; }
public string Publisher { get; set; }

Loading…
Cancel
Save