1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

Fixed: Unable to process downloads from client

Closes #5284
This commit is contained in:
Mark McDowall
2022-12-09 09:19:11 -08:00
parent 05775a9bd0
commit e50eb5188e
7 changed files with 13 additions and 14 deletions
@@ -3,7 +3,6 @@ using System.IO;
using System.Linq;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Blocklisting;
using NzbDrone.Core.Datastore.Migration;
using NzbDrone.Core.History;
using NzbDrone.Core.MediaFiles;
using NzbDrone.Core.Parser.Model;
@@ -13,7 +12,7 @@ namespace NzbDrone.Core.CustomFormats
{
public interface ICustomFormatCalculationService
{
List<CustomFormat> ParseCustomFormat(RemoteEpisode remoteEpisode);
List<CustomFormat> ParseCustomFormat(RemoteEpisode remoteEpisode, long size);
List<CustomFormat> ParseCustomFormat(EpisodeFile episodeFile, Series series);
List<CustomFormat> ParseCustomFormat(EpisodeFile episodeFile);
List<CustomFormat> ParseCustomFormat(Blocklist blocklist, Series series);
@@ -30,13 +29,13 @@ namespace NzbDrone.Core.CustomFormats
_formatService = formatService;
}
public List<CustomFormat> ParseCustomFormat(RemoteEpisode remoteEpisode)
public List<CustomFormat> ParseCustomFormat(RemoteEpisode remoteEpisode, long size)
{
var input = new CustomFormatInput
{
EpisodeInfo = remoteEpisode.ParsedEpisodeInfo,
Series = remoteEpisode.Series,
Size = remoteEpisode.Release.Size,
Size = size,
Languages = remoteEpisode.Languages
};