|
|
@ -92,7 +92,7 @@ namespace NzbDrone.Api.Indexers
|
|
|
|
return new ReleaseResource
|
|
|
|
return new ReleaseResource
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Guid = releaseInfo.Guid,
|
|
|
|
Guid = releaseInfo.Guid,
|
|
|
|
Quality = parsedEpisodeInfo.Quality,
|
|
|
|
Quality = parsedEpisodeInfo?.Quality,
|
|
|
|
//QualityWeight
|
|
|
|
//QualityWeight
|
|
|
|
Age = releaseInfo.Age,
|
|
|
|
Age = releaseInfo.Age,
|
|
|
|
AgeHours = releaseInfo.AgeHours,
|
|
|
|
AgeHours = releaseInfo.AgeHours,
|
|
|
@ -100,16 +100,16 @@ namespace NzbDrone.Api.Indexers
|
|
|
|
Size = releaseInfo.Size,
|
|
|
|
Size = releaseInfo.Size,
|
|
|
|
IndexerId = releaseInfo.IndexerId,
|
|
|
|
IndexerId = releaseInfo.IndexerId,
|
|
|
|
Indexer = releaseInfo.Indexer,
|
|
|
|
Indexer = releaseInfo.Indexer,
|
|
|
|
ReleaseGroup = parsedEpisodeInfo.ReleaseGroup,
|
|
|
|
ReleaseGroup = parsedEpisodeInfo?.ReleaseGroup,
|
|
|
|
ReleaseHash = parsedEpisodeInfo.ReleaseHash,
|
|
|
|
ReleaseHash = parsedEpisodeInfo?.ReleaseHash,
|
|
|
|
Title = releaseInfo.Title,
|
|
|
|
Title = releaseInfo.Title,
|
|
|
|
FullSeason = parsedEpisodeInfo.FullSeason,
|
|
|
|
FullSeason = parsedEpisodeInfo?.FullSeason ?? false,
|
|
|
|
SeasonNumber = parsedEpisodeInfo.SeasonNumber,
|
|
|
|
SeasonNumber = parsedEpisodeInfo?.SeasonNumber ?? 0,
|
|
|
|
Language = parsedEpisodeInfo.Language,
|
|
|
|
Language = parsedEpisodeInfo?.Language,
|
|
|
|
AirDate = parsedEpisodeInfo.AirDate,
|
|
|
|
AirDate = parsedEpisodeInfo?.AirDate,
|
|
|
|
SeriesTitle = parsedEpisodeInfo.SeriesTitle,
|
|
|
|
SeriesTitle = parsedEpisodeInfo?.SeriesTitle,
|
|
|
|
EpisodeNumbers = parsedEpisodeInfo.EpisodeNumbers,
|
|
|
|
EpisodeNumbers = parsedEpisodeInfo?.EpisodeNumbers,
|
|
|
|
AbsoluteEpisodeNumbers = parsedEpisodeInfo.AbsoluteEpisodeNumbers,
|
|
|
|
AbsoluteEpisodeNumbers = parsedEpisodeInfo?.AbsoluteEpisodeNumbers,
|
|
|
|
Approved = model.Approved,
|
|
|
|
Approved = model.Approved,
|
|
|
|
TemporarilyRejected = model.TemporarilyRejected,
|
|
|
|
TemporarilyRejected = model.TemporarilyRejected,
|
|
|
|
Rejected = model.Rejected,
|
|
|
|
Rejected = model.Rejected,
|
|
|
@ -129,10 +129,10 @@ namespace NzbDrone.Api.Indexers
|
|
|
|
Leechers = (torrentInfo.Peers.HasValue && torrentInfo.Seeders.HasValue) ? (torrentInfo.Peers.Value - torrentInfo.Seeders.Value) : (int?)null,
|
|
|
|
Leechers = (torrentInfo.Peers.HasValue && torrentInfo.Seeders.HasValue) ? (torrentInfo.Peers.Value - torrentInfo.Seeders.Value) : (int?)null,
|
|
|
|
Protocol = releaseInfo.DownloadProtocol,
|
|
|
|
Protocol = releaseInfo.DownloadProtocol,
|
|
|
|
|
|
|
|
|
|
|
|
IsDaily = parsedEpisodeInfo.IsDaily,
|
|
|
|
IsDaily = parsedEpisodeInfo?.IsDaily ?? false,
|
|
|
|
IsAbsoluteNumbering = parsedEpisodeInfo.IsAbsoluteNumbering,
|
|
|
|
IsAbsoluteNumbering = parsedEpisodeInfo?.IsAbsoluteNumbering ?? false,
|
|
|
|
IsPossibleSpecialEpisode = parsedEpisodeInfo.IsPossibleSpecialEpisode,
|
|
|
|
IsPossibleSpecialEpisode = parsedEpisodeInfo?.IsPossibleSpecialEpisode ?? false,
|
|
|
|
Special = parsedEpisodeInfo.Special,
|
|
|
|
Special = parsedEpisodeInfo?.Special ?? false,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|