mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
fixed circular dependency issue that stopped the app from starting.
This commit is contained in:
parent
401ed9a8f6
commit
e436072dcc
@ -188,7 +188,7 @@
|
||||
<Compile Include="DataAugmentation\DailySeries\DailySeriesDataProxy.cs" />
|
||||
<Compile Include="DataAugmentation\DailySeries\DailySeriesService.cs" />
|
||||
<Compile Include="DataAugmentation\Scene\SceneMapping.cs" />
|
||||
<Compile Include="DataAugmentation\Scene\SceneMappingProvider.cs" />
|
||||
<Compile Include="DataAugmentation\Scene\SceneMappingService.cs" />
|
||||
<Compile Include="DataAugmentation\Scene\SceneMappingProxy.cs" />
|
||||
<Compile Include="DataAugmentation\Scene\SceneMappingRepository.cs" />
|
||||
<Compile Include="Datastore\Converters\BooleanIntConverter.cs" />
|
||||
|
@ -5,12 +5,8 @@
|
||||
using NzbDrone.Common.EnsureThat;
|
||||
using NzbDrone.Common.Eventing;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.DataAugmentation;
|
||||
using NzbDrone.Core.DataAugmentation.Scene;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using NzbDrone.Core.MetadataSource;
|
||||
using NzbDrone.Core.Model;
|
||||
using NzbDrone.Core.Qualities;
|
||||
using NzbDrone.Core.Tv.Events;
|
||||
|
||||
namespace NzbDrone.Core.Tv
|
||||
@ -19,7 +15,6 @@ public interface ISeriesService
|
||||
{
|
||||
bool IsMonitored(int id);
|
||||
Series UpdateSeriesInfo(int seriesId);
|
||||
Series FindSeries(string title);
|
||||
Series GetSeries(int seriesId);
|
||||
void AddSeries(Series newSeries);
|
||||
void UpdateFromSeriesEditor(IList<Series> editedSeries);
|
||||
@ -34,22 +29,15 @@ public class SeriesService : ISeriesService, IHandleAsync<SeriesAddedEvent>
|
||||
private readonly IConfigService _configService;
|
||||
private readonly IProvideSeriesInfo _seriesInfoProxy;
|
||||
private readonly IEventAggregator _eventAggregator;
|
||||
private readonly IQualityProfileService _qualityProfileService;
|
||||
private readonly Logger _logger;
|
||||
|
||||
|
||||
private readonly ISceneMappingService _sceneNameMappingService;
|
||||
|
||||
public SeriesService(ISeriesRepository seriesRepository, IConfigService configServiceService,
|
||||
IProvideSeriesInfo seriesInfoProxy, ISceneMappingService sceneNameMappingService,
|
||||
IEventAggregator eventAggregator, IQualityProfileService qualityProfileService, Logger logger)
|
||||
public SeriesService(ISeriesRepository seriesRepository, IConfigService configServiceService, IProvideSeriesInfo seriesInfoProxy,
|
||||
IEventAggregator eventAggregator, Logger logger)
|
||||
{
|
||||
_seriesRepository = seriesRepository;
|
||||
_configService = configServiceService;
|
||||
_seriesInfoProxy = seriesInfoProxy;
|
||||
_sceneNameMappingService = sceneNameMappingService;
|
||||
_eventAggregator = eventAggregator;
|
||||
_qualityProfileService = qualityProfileService;
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
@ -82,19 +70,6 @@ public Series UpdateSeriesInfo(int seriesId)
|
||||
return series;
|
||||
}
|
||||
|
||||
public Series FindSeries(string title)
|
||||
{
|
||||
var normalizeTitle = Parser.NormalizeTitle(title);
|
||||
|
||||
var mapping = _sceneNameMappingService.GetTvDbId(normalizeTitle);
|
||||
if (mapping.HasValue)
|
||||
{
|
||||
var sceneSeries = _seriesRepository.Get(mapping.Value);
|
||||
return sceneSeries;
|
||||
}
|
||||
|
||||
return _seriesRepository.GetByTitle(normalizeTitle);
|
||||
}
|
||||
|
||||
public Series GetSeries(int seriesId)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user