mirror of https://github.com/Sonarr/Sonarr
parent
3b10400948
commit
b76a7c2773
|
@ -5,6 +5,7 @@ using NLog;
|
||||||
using NzbDrone.Common.Crypto;
|
using NzbDrone.Common.Crypto;
|
||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
|
using NzbDrone.Core.CustomFormats;
|
||||||
using NzbDrone.Core.DecisionEngine;
|
using NzbDrone.Core.DecisionEngine;
|
||||||
using NzbDrone.Core.Indexers;
|
using NzbDrone.Core.Indexers;
|
||||||
using NzbDrone.Core.Jobs;
|
using NzbDrone.Core.Jobs;
|
||||||
|
@ -42,6 +43,7 @@ namespace NzbDrone.Core.Download.Pending
|
||||||
private readonly IDelayProfileService _delayProfileService;
|
private readonly IDelayProfileService _delayProfileService;
|
||||||
private readonly ITaskManager _taskManager;
|
private readonly ITaskManager _taskManager;
|
||||||
private readonly IConfigService _configService;
|
private readonly IConfigService _configService;
|
||||||
|
private readonly ICustomFormatCalculationService _customFormatCalculationService;
|
||||||
private readonly IEventAggregator _eventAggregator;
|
private readonly IEventAggregator _eventAggregator;
|
||||||
private readonly Logger _logger;
|
private readonly Logger _logger;
|
||||||
|
|
||||||
|
@ -52,6 +54,7 @@ namespace NzbDrone.Core.Download.Pending
|
||||||
IDelayProfileService delayProfileService,
|
IDelayProfileService delayProfileService,
|
||||||
ITaskManager taskManager,
|
ITaskManager taskManager,
|
||||||
IConfigService configService,
|
IConfigService configService,
|
||||||
|
ICustomFormatCalculationService customFormatCalculationService,
|
||||||
IEventAggregator eventAggregator,
|
IEventAggregator eventAggregator,
|
||||||
Logger logger)
|
Logger logger)
|
||||||
{
|
{
|
||||||
|
@ -62,6 +65,7 @@ namespace NzbDrone.Core.Download.Pending
|
||||||
_delayProfileService = delayProfileService;
|
_delayProfileService = delayProfileService;
|
||||||
_taskManager = taskManager;
|
_taskManager = taskManager;
|
||||||
_configService = configService;
|
_configService = configService;
|
||||||
|
_customFormatCalculationService = customFormatCalculationService;
|
||||||
_eventAggregator = eventAggregator;
|
_eventAggregator = eventAggregator;
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
}
|
}
|
||||||
|
@ -319,6 +323,8 @@ namespace NzbDrone.Core.Download.Pending
|
||||||
release.RemoteEpisode.Episodes = new List<Episode>();
|
release.RemoteEpisode.Episodes = new List<Episode>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
release.RemoteEpisode.CustomFormats = _customFormatCalculationService.ParseCustomFormat(release.RemoteEpisode.ParsedEpisodeInfo, release.RemoteEpisode.Series);
|
||||||
|
|
||||||
result.Add(release);
|
result.Add(release);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue