コード例 #1
0
ファイル: RssSyncService.cs プロジェクト: gschizas/NzbDrone
 public RssSyncService(IFetchAndParseRss rssFetcherAndParser,
                       IMakeDownloadDecision downloadDecisionMaker,
                       IDownloadApprovedReports downloadApprovedReports,
                       IEpisodeSearchService episodeSearchService,
                       Logger logger)
 {
     _rssFetcherAndParser     = rssFetcherAndParser;
     _downloadDecisionMaker   = downloadDecisionMaker;
     _downloadApprovedReports = downloadApprovedReports;
     _episodeSearchService    = episodeSearchService;
     _logger = logger;
 }
コード例 #2
0
ファイル: NzbSearchService.cs プロジェクト: whoshoe/Readarr
 public NzbSearchService(IIndexerFactory indexerFactory,
                         IBookService bookService,
                         IAuthorService authorService,
                         IMakeDownloadDecision makeDownloadDecision,
                         Logger logger)
 {
     _indexerFactory       = indexerFactory;
     _bookService          = bookService;
     _authorService        = authorService;
     _makeDownloadDecision = makeDownloadDecision;
     _logger = logger;
 }
コード例 #3
0
ファイル: NzbSearchService.cs プロジェクト: zobe123/Lidarr
 public NzbSearchService(IIndexerFactory indexerFactory,
                         IAlbumService albumService,
                         IArtistService artistService,
                         IMakeDownloadDecision makeDownloadDecision,
                         Logger logger)
 {
     _indexerFactory       = indexerFactory;
     _albumService         = albumService;
     _artistService        = artistService;
     _makeDownloadDecision = makeDownloadDecision;
     _logger = logger;
 }
コード例 #4
0
 public ReleaseSearchService(IIndexerFactory indexerFactory,
                             IMakeDownloadDecision makeDownloadDecision,
                             IMovieService movieService,
                             IMovieTranslationService movieTranslationService,
                             IProfileService profileService,
                             Logger logger)
 {
     _indexerFactory          = indexerFactory;
     _makeDownloadDecision    = makeDownloadDecision;
     _movieService            = movieService;
     _movieTranslationService = movieTranslationService;
     _profileService          = profileService;
     _logger = logger;
 }
コード例 #5
0
 public NzbSearchService(IIndexerFactory indexerFactory,
                         ISceneMappingService sceneMapping,
                         ISeriesService seriesService,
                         IEpisodeService episodeService,
                         IMakeDownloadDecision makeDownloadDecision,
                         Logger logger)
 {
     _indexerFactory       = indexerFactory;
     _sceneMapping         = sceneMapping;
     _seriesService        = seriesService;
     _episodeService       = episodeService;
     _makeDownloadDecision = makeDownloadDecision;
     _logger = logger;
 }
コード例 #6
0
ファイル: ReleasePushModule.cs プロジェクト: Djohnnie/Sonarr
        public ReleasePushModule(IMakeDownloadDecision downloadDecisionMaker,
                                 IProcessDownloadDecisions downloadDecisionProcessor,
                                 Logger logger)
        {
            _downloadDecisionMaker = downloadDecisionMaker;
            _downloadDecisionProcessor = downloadDecisionProcessor;
            _logger = logger;

            Post["/push"] = x => ProcessRelease(this.Bind<ReleaseResource>());

            PostValidator.RuleFor(s => s.Title).NotEmpty();
            PostValidator.RuleFor(s => s.DownloadUrl).NotEmpty();
            PostValidator.RuleFor(s => s.DownloadProtocol).NotEmpty();
            PostValidator.RuleFor(s => s.PublishDate).NotEmpty();
        }
コード例 #7
0
        public ReleasePushController(IMakeDownloadDecision downloadDecisionMaker,
                                     IProcessDownloadDecisions downloadDecisionProcessor,
                                     IIndexerFactory indexerFactory,
                                     Logger logger)
        {
            _downloadDecisionMaker     = downloadDecisionMaker;
            _downloadDecisionProcessor = downloadDecisionProcessor;
            _indexerFactory            = indexerFactory;
            _logger = logger;

            PostValidator.RuleFor(s => s.Title).NotEmpty();
            PostValidator.RuleFor(s => s.DownloadUrl).NotEmpty();
            PostValidator.RuleFor(s => s.Protocol).NotEmpty();
            PostValidator.RuleFor(s => s.PublishDate).NotEmpty();
        }
コード例 #8
0
        public ReleasePushModule(IMakeDownloadDecision downloadDecisionMaker,
                                 IProcessDownloadDecisions downloadDecisionProcessor,
                                 Logger logger)
        {
            _downloadDecisionMaker     = downloadDecisionMaker;
            _downloadDecisionProcessor = downloadDecisionProcessor;
            _logger = logger;

            Post["/push"] = x => ProcessRelease(this.Bind <ReleaseResource>());

            PostValidator.RuleFor(s => s.Title).NotEmpty();
            PostValidator.RuleFor(s => s.DownloadUrl).NotEmpty();
            PostValidator.RuleFor(s => s.Protocol).NotEmpty();
            PostValidator.RuleFor(s => s.PublishDate).NotEmpty();
        }
コード例 #9
0
 public RssSyncService(IFetchAndParseRss rssFetcherAndParser,
                       IMakeDownloadDecision downloadDecisionMaker,
                       IProcessDownloadDecisions processDownloadDecisions,
                       IEpisodeSearchService episodeSearchService,
                       IPendingReleaseService pendingReleaseService,
                       IEventAggregator eventAggregator,
                       Logger logger)
 {
     _rssFetcherAndParser      = rssFetcherAndParser;
     _downloadDecisionMaker    = downloadDecisionMaker;
     _processDownloadDecisions = processDownloadDecisions;
     _episodeSearchService     = episodeSearchService;
     _pendingReleaseService    = pendingReleaseService;
     _eventAggregator          = eventAggregator;
     _logger = logger;
 }
コード例 #10
0
ファイル: ReleaseModule.cs プロジェクト: scottrice/NzbDrone
        public ReleaseModule(IFetchAndParseRss rssFetcherAndParser,
                             ISearchForNzb nzbSearchService,
                             IMakeDownloadDecision downloadDecisionMaker,
                             IDownloadService downloadService,
                             IParsingService parsingService)
        {
            _rssFetcherAndParser   = rssFetcherAndParser;
            _nzbSearchService      = nzbSearchService;
            _downloadDecisionMaker = downloadDecisionMaker;
            _downloadService       = downloadService;
            _parsingService        = parsingService;
            GetResourceAll         = GetReleases;
            Post["/"] = x => DownloadRelease(this.Bind <ReleaseResource>());

            PostValidator.RuleFor(s => s.DownloadAllowed).Equal(true);
        }
コード例 #11
0
 public NzbSearchService(IIndexerService indexerService,
                         IFetchFeedFromIndexers feedFetcher,
                         ISceneMappingService sceneMapping,
                         ISeriesService seriesService,
                         IEpisodeService episodeService,
                         IMakeDownloadDecision makeDownloadDecision,
                         Logger logger)
 {
     _indexerService       = indexerService;
     _feedFetcher          = feedFetcher;
     _sceneMapping         = sceneMapping;
     _seriesService        = seriesService;
     _episodeService       = episodeService;
     _makeDownloadDecision = makeDownloadDecision;
     _logger = logger;
 }
コード例 #12
0
ファイル: ReleasePushModule.cs プロジェクト: ocervell/Gamearr
        public ReleasePushModule(IMakeDownloadDecision downloadDecisionMaker,
                                 IProcessDownloadDecisions downloadDecisionProcessor,
                                 IIndexerFactory indexerFactory,
                                 Logger logger)
        {
            _downloadDecisionMaker     = downloadDecisionMaker;
            _downloadDecisionProcessor = downloadDecisionProcessor;
            _indexerFactory            = indexerFactory;
            _logger = logger;

            Post["/push"] = x => ProcessRelease(ReadResourceFromRequest());

            PostValidator.RuleFor(s => s.Title).NotEmpty();
            PostValidator.RuleFor(s => s.DownloadUrl).NotEmpty();
            PostValidator.RuleFor(s => s.Protocol).NotEmpty();
            PostValidator.RuleFor(s => s.PublishDate).NotEmpty();
        }
コード例 #13
0
 public RssSyncService(IIndexerStatusService indexerStatusService,
                       IIndexerFactory indexerFactory,
                       IFetchAndParseRss rssFetcherAndParser,
                       IMakeDownloadDecision downloadDecisionMaker,
                       IProcessDownloadDecisions processDownloadDecisions,
                       IPendingReleaseService pendingReleaseService,
                       IEventAggregator eventAggregator,
                       Logger logger)
 {
     _indexerStatusService     = indexerStatusService;
     _indexerFactory           = indexerFactory;
     _rssFetcherAndParser      = rssFetcherAndParser;
     _downloadDecisionMaker    = downloadDecisionMaker;
     _processDownloadDecisions = processDownloadDecisions;
     _pendingReleaseService    = pendingReleaseService;
     _eventAggregator          = eventAggregator;
     _logger = logger;
 }
コード例 #14
0
        public ReleasePushModule(IMakeDownloadDecision downloadDecisionMaker,
                                 IProcessDownloadDecisions downloadDecisionProcessor,
                                 IIndexerFactory indexerFactory,
                                 ILanguageProfileService languageProfileService,
                                 IQualityProfileService qualityProfileService,
                                 Logger logger) :
            base(languageProfileService, qualityProfileService)
        {
            _downloadDecisionMaker     = downloadDecisionMaker;
            _downloadDecisionProcessor = downloadDecisionProcessor;
            _indexerFactory            = indexerFactory;
            _logger = logger;

            PostValidator.RuleFor(s => s.Title).NotEmpty();
            PostValidator.RuleFor(s => s.DownloadUrl).NotEmpty();
            PostValidator.RuleFor(s => s.Protocol).NotEmpty();
            PostValidator.RuleFor(s => s.PublishDate).NotEmpty();

            Post("/push", x => ProcessRelease(ReadResourceFromRequest()));
        }
コード例 #15
0
        public ReleaseModule(IFetchAndParseRss rssFetcherAndParser,
                             ISearchForNzb nzbSearchService,
                             IMakeDownloadDecision downloadDecisionMaker,
                             IPrioritizeDownloadDecision prioritizeDownloadDecision,
                             IDownloadService downloadService,
                             ICacheManager cacheManager,
                             Logger logger)
        {
            _rssFetcherAndParser        = rssFetcherAndParser;
            _nzbSearchService           = nzbSearchService;
            _downloadDecisionMaker      = downloadDecisionMaker;
            _prioritizeDownloadDecision = prioritizeDownloadDecision;
            _downloadService            = downloadService;
            _logger        = logger;
            GetResourceAll = GetReleases;
            Post["/"]      = x => DownloadRelease(this.Bind <ReleaseResource>());

            PostValidator.RuleFor(s => s.DownloadAllowed).Equal(true);

            _remoteEpisodeCache = cacheManager.GetCache <RemoteEpisode>(GetType(), "remoteEpisodes");
        }
コード例 #16
0
 public PreDBService(
     IFetchAndParseRss rssFetcherAndParser,
     IMakeDownloadDecision downloadDecisionMaker,
     IProcessDownloadDecisions processDownloadDecisions,
     IPendingReleaseService pendingReleaseService,
     IEventAggregator eventAggregator,
     IMovieService movieService,
     IHttpClient httpClient,
     IParsingService parsingService,
     Logger logger)
 {
     _rssFetcherAndParser      = rssFetcherAndParser;
     _downloadDecisionMaker    = downloadDecisionMaker;
     _processDownloadDecisions = processDownloadDecisions;
     _pendingReleaseService    = pendingReleaseService;
     _eventAggregator          = eventAggregator;
     _movieService             = movieService;
     _httpClient     = httpClient;
     _parsingService = parsingService;
     _logger         = logger;
 }
コード例 #17
0
        public ReleaseModule(IFetchAndParseRss rssFetcherAndParser,
                             ISearchForNzb nzbSearchService,
                             IMakeDownloadDecision downloadDecisionMaker,
                             IPrioritizeDownloadDecision prioritizeDownloadDecision,
                             IDownloadService downloadService,
                             ICacheManager cacheManager,
                             Logger logger)
        {
            _rssFetcherAndParser        = rssFetcherAndParser;
            _nzbSearchService           = nzbSearchService;
            _downloadDecisionMaker      = downloadDecisionMaker;
            _prioritizeDownloadDecision = prioritizeDownloadDecision;
            _downloadService            = downloadService;
            _logger = logger;

            GetResourceAll = GetReleases;
            Post("/", x => DownloadRelease(ReadResourceFromRequest()));

            PostValidator.RuleFor(s => s.IndexerId).ValidId();
            PostValidator.RuleFor(s => s.Guid).NotEmpty();

            _remoteBookCache = cacheManager.GetCache <RemoteBook>(GetType(), "remoteBooks");
        }
コード例 #18
0
ファイル: ReleaseModule.cs プロジェクト: Djohnnie/Sonarr
        public ReleaseModule(IFetchAndParseRss rssFetcherAndParser,
                             ISearchForNzb nzbSearchService,
                             IMakeDownloadDecision downloadDecisionMaker,
                             IPrioritizeDownloadDecision prioritizeDownloadDecision,
                             IDownloadService downloadService,
                             ICacheManager cacheManager,
                             Logger logger)
        {
            _rssFetcherAndParser = rssFetcherAndParser;
            _nzbSearchService = nzbSearchService;
            _downloadDecisionMaker = downloadDecisionMaker;
            _prioritizeDownloadDecision = prioritizeDownloadDecision;
            _downloadService = downloadService;
            _logger = logger;

            GetResourceAll = GetReleases;
            Post["/"] = x => DownloadRelease(this.Bind<ReleaseResource>());

            PostValidator.RuleFor(s => s.DownloadAllowed).Equal(true);
            PostValidator.RuleFor(s => s.Guid).NotEmpty();

            _remoteEpisodeCache = cacheManager.GetCache<RemoteEpisode>(GetType(), "remoteEpisodes");
        }
コード例 #19
0
        public ReleaseController(IFetchAndParseRss rssFetcherAndParser,
                                 ISearchForReleases releaseSearchService,
                                 IMakeDownloadDecision downloadDecisionMaker,
                                 IPrioritizeDownloadDecision prioritizeDownloadDecision,
                                 IDownloadService downloadService,
                                 IMovieService movieService,
                                 ICacheManager cacheManager,
                                 IProfileService qualityProfileService,
                                 Logger logger)
            : base(qualityProfileService)
        {
            _rssFetcherAndParser        = rssFetcherAndParser;
            _releaseSearchService       = releaseSearchService;
            _downloadDecisionMaker      = downloadDecisionMaker;
            _prioritizeDownloadDecision = prioritizeDownloadDecision;
            _downloadService            = downloadService;
            _movieService = movieService;
            _logger       = logger;

            PostValidator.RuleFor(s => s.IndexerId).ValidId();
            PostValidator.RuleFor(s => s.Guid).NotEmpty();

            _remoteMovieCache = cacheManager.GetCache <RemoteMovie>(GetType(), "remoteMovies");
        }