public SeriesProvider(ILogManager logManager, IMediaItemProcessor mediaItemProcessor,
                       IPluginConfiguration pluginConfiguration)
 {
     this.mediaItemProcessor  = mediaItemProcessor;
     this.pluginConfiguration = pluginConfiguration;
     this.log = logManager.GetLogger(nameof(SeriesProvider));
 }
Beispiel #2
0
 public MovieProcessor(
     IPlexService plexService,
     IMediaItemProcessor mediaItemProcessor,
     PlexSettings plexSettings,
     ILoggerFactory loggerFactory)
 {
     _plexService        = plexService;
     _mediaItemProcessor = mediaItemProcessor;
     _plexSettings       = plexSettings;
     _logger             = loggerFactory.CreateLogger <MovieProcessor>();
 }
Beispiel #3
0
        public MovieProcessorTests()
        {
            _plexService        = Substitute.For <IPlexService>();
            _mediaItemProcessor = Substitute.For <IMediaItemProcessor>();
            var loggerFactory = Substitute.For <ILoggerFactory>();

            loggerFactory.CreateLogger <MovieProcessor>().Returns(Substitute.For <ILogger>());

            var plexSettings = new PlexSettingsBuilder().Build();

            _underTest = new MovieProcessor(_plexService, _mediaItemProcessor, plexSettings, loggerFactory);
        }
        public TvProcessorTests()
        {
            _plexApi            = Substitute.For <IPlexApi>();
            _plexService        = Substitute.For <IPlexService>();
            _mediaItemProcessor = Substitute.For <IMediaItemProcessor>();
            _agentGuidParser    = Substitute.For <IAgentGuidParser>();
            var loggerFactory = Substitute.For <ILoggerFactory>();

            loggerFactory.CreateLogger <TvProcessor>().Returns(Substitute.For <ILogger>());

            var plexSettings = new PlexSettingsBuilder().Build();

            _underTest = new TvProcessor(_plexApi, _plexService, _mediaItemProcessor, plexSettings, _agentGuidParser, loggerFactory);
        }
 public TvProcessor(
     IPlexApi plexApi,
     IPlexService plexService,
     IMediaItemProcessor mediaItemProcessor,
     PlexSettings plexSettings,
     IAgentGuidParser agentGuidParser,
     ILoggerFactory loggerFactory)
 {
     _plexApi            = plexApi;
     _plexService        = plexService;
     _mediaItemProcessor = mediaItemProcessor;
     _plexSettings       = plexSettings;
     _agentGuidParser    = agentGuidParser;
     _logger             = loggerFactory.CreateLogger <TvProcessor>();
 }
 public ProcessorProvider(
     IPlexApi plexApi,
     IPlexService plexService,
     IMediaItemProcessor mediaItemProcessor,
     IAgentGuidParser agentGuidParser,
     IOptionsSnapshot <PlexSettings> plexSettings,
     ILoggerFactory loggerFactory
     )
 {
     _processors = new List <ISyncProcessor>
     {
         new MovieProcessor(plexService, mediaItemProcessor, plexSettings.Value, loggerFactory),
         new TvProcessor(plexApi, plexService, mediaItemProcessor, plexSettings.Value, agentGuidParser, loggerFactory)
     };
 }
Beispiel #7
0
 public EpisodeProvider(ILogManager logManager, IMediaItemProcessor mediaItemProcessor)
 {
     _mediaItemProcessor = mediaItemProcessor;
     _log = logManager.GetLogger(nameof(EpisodeProvider));
 }
Beispiel #8
0
 public SeasonProvider(ILogManager logManager, IMediaItemProcessor mediaItemProcessor)
 {
     this.mediaItemProcessor = mediaItemProcessor;
     this.log = logManager.GetLogger(nameof(SeasonProvider));
 }