mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-18 19:15:10 -04:00
New: (Cardigann) Add season/episode fields
This commit is contained in:
parent
4561859c2b
commit
33c68e7964
3 changed files with 12 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue