示例#1
0
 public RefreshMetadata(IPlexContentRepository plexRepo, IEmbyContentRepository embyRepo, IJellyfinContentRepository jellyfinRepo,
                        ILogger <RefreshMetadata> log, ITvMazeApi tvApi, ISettingsService <PlexSettings> plexSettings,
                        IMovieDbApi movieApi,
                        ISettingsService <EmbySettings> embySettings, IEmbyApiFactory embyApi,
                        ISettingsService <JellyfinSettings> jellyfinSettings, IJellyfinApiFactory jellyfinApi,
                        IHubContext <NotificationHub> notification)
 {
     _plexRepo           = plexRepo;
     _embyRepo           = embyRepo;
     _jellyfinRepo       = jellyfinRepo;
     _log                = log;
     _movieApi           = movieApi;
     _tvApi              = tvApi;
     _plexSettings       = plexSettings;
     _embySettings       = embySettings;
     _embyApiFactory     = embyApi;
     _jellyfinSettings   = jellyfinSettings;
     _jellyfinApiFactory = jellyfinApi;
     _notification       = notification;
 }
示例#2
0
 public NewsletterJob(IPlexContentRepository plex, IEmbyContentRepository emby, IRepository <RecentlyAddedLog> addedLog,
                      IMovieDbApi movieApi, ITvMazeApi tvApi, IEmailProvider email, ISettingsService <CustomizationSettings> custom,
                      ISettingsService <EmailNotificationSettings> emailSettings, INotificationTemplatesRepository templateRepo,
                      UserManager <OmbiUser> um, ISettingsService <NewsletterSettings> newsletter, ILogger <NewsletterJob> log)
 {
     _plex                  = plex;
     _emby                  = emby;
     _recentlyAddedLog      = addedLog;
     _movieApi              = movieApi;
     _tvApi                 = tvApi;
     _email                 = email;
     _customizationSettings = custom;
     _templateRepo          = templateRepo;
     _emailSettings         = emailSettings;
     _newsletterSettings    = newsletter;
     _userManager           = um;
     _emailSettings.ClearCache();
     _customizationSettings.ClearCache();
     _newsletterSettings.ClearCache();
     _log = log;
 }
示例#3
0
 public TvShowRequestBuilder(ITvMazeApi tvApi, IMovieDbApi movApi)
 {
     TvApi      = tvApi;
     MovieDbApi = movApi;
 }
示例#4
0
 public DemoTvSearchEngine(ICurrentUser identity, IRequestServiceMain service, ITvMazeApi tvMaze, IMapper mapper,
                           ITraktApi trakt, IRuleEvaluator r, OmbiUserManager um, ICacheService memCache,
                           ISettingsService <OmbiSettings> s, IRepository <RequestSubscription> sub, IOptions <DemoLists> lists, IImageService imageService,
                           ISettingsService <CustomizationSettings> custom)
     : base(identity, service, tvMaze, mapper, trakt, r, um, custom, memCache, s, sub, imageService, null)
 {
     _demoLists = lists.Value;
 }
示例#5
0
 public TvShowRequestBuilder(ITvMazeApi tvApi, IMovieDbApi movApi, ILogger logger)
 {
     TvApi      = tvApi;
     MovieDbApi = movApi;
     _logger    = logger;
 }
示例#6
0
 public ShowsSynchronizationService(IShowsRepository showsRepository, ITvMazeApi tvMazeApi, CancellationTokenSource cts)
 {
     _showsRepository = showsRepository ?? throw new ArgumentNullException(nameof(showsRepository));
     _tvMazeApi       = tvMazeApi;
     _cts             = cts;
 }
示例#7
0
 public TvMazeShowGrabber(ITvMazeApi tvMazeApi, ILoggerFactory loggerFactory)
 {
     _tvMazeApi = tvMazeApi;
     _logger    = loggerFactory.CreateLogger <TvMazeShowGrabber>();
 }
示例#8
0
 public TvShowRequestBuilder(ITvMazeApi tvApi)
 {
     TvApi = tvApi;
 }
 public TvMazeService(ITvMazeApi tvMazeApi, ILogger <TvMazeService> logger)
 {
     _tvMazeApi = tvMazeApi;
     _logger    = logger;
 }
示例#10
0
 public ScrapeTvMazeData(TvMazeDbContext dbContext, IShowsRepository showsRepository, ITvMazeApi tvMazeApi, ICastRepository castRepository, IPersonRepository personRepository)
 {
     DbContext        = dbContext;
     ShowsRepository  = showsRepository;
     TvMazeApi        = tvMazeApi;
     CastRepository   = castRepository;
     PersonRepository = personRepository;
 }