From 0844cfb63508ddedade84c551c02e135d6ceb6ba Mon Sep 17 00:00:00 2001 From: jaja123456789 <47058642+jaja123456789@users.noreply.github.com> Date: Sun, 6 Nov 2022 17:39:22 +0100 Subject: [PATCH] Fixed: File Size in Custom Formats --- src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs index 373cab9ed..6e44bddb1 100644 --- a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs +++ b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs @@ -88,6 +88,11 @@ namespace NzbDrone.Core.DecisionEngine } } + if (parsedEpisodeInfo != null && report.Size > 0) + { + parsedEpisodeInfo.ExtraInfo.Add("Size", report.Size); + } + if (parsedEpisodeInfo != null && !parsedEpisodeInfo.SeriesTitle.IsNullOrWhiteSpace()) { var remoteEpisode = _parsingService.Map(parsedEpisodeInfo, report.TvdbId, report.TvRageId, searchCriteria);