1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

Fixed: File Size in Custom Formats

This commit is contained in:
jaja123456789 2022-11-06 17:39:22 +01:00 committed by GitHub
parent 2fb5655789
commit 0844cfb635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,11 @@ private IEnumerable<DownloadDecision> GetDecisions(List<ReleaseInfo> reports, Se
} }
} }
if (parsedEpisodeInfo != null && report.Size > 0)
{
parsedEpisodeInfo.ExtraInfo.Add("Size", report.Size);
}
if (parsedEpisodeInfo != null && !parsedEpisodeInfo.SeriesTitle.IsNullOrWhiteSpace()) if (parsedEpisodeInfo != null && !parsedEpisodeInfo.SeriesTitle.IsNullOrWhiteSpace())
{ {
var remoteEpisode = _parsingService.Map(parsedEpisodeInfo, report.TvdbId, report.TvRageId, searchCriteria); var remoteEpisode = _parsingService.Map(parsedEpisodeInfo, report.TvdbId, report.TvRageId, searchCriteria);