public void Setup() { _seriesInfo = new SeriesInfo { Name = "SeriesName", IndexNumber = 3, ParentIndexNumber = 1, ProviderIds = new Dictionary <string, string> { { "Source", "66" } } }; _mediaItemProcessorResult = Left <ProcessFailedResult, IMetadataFoundResult <Series> >( new ProcessFailedResult("FailedSource", "MediaItemName", MediaItemTypes.Series, "Failure reason")); _mediaItemProcessor = Substitute.For <IMediaItemProcessor>(); _mediaItemProcessor.GetResultAsync(_seriesInfo, MediaItemTypes.Series, Enumerable.Empty <EmbyItemId>()) .Returns(x => _mediaItemProcessorResult); _logManager = Substitute.For <ILogManager>(); _logger = Substitute.For <ILogger>(); _logger.WhenForAnyArgs(l => l.Debug(null, null)).Do(c => Console.WriteLine($"Debug: {c.Arg<string>()}")); _logManager.GetLogger("SeriesProvider").Returns(_logger); _pluginConfiguration = Substitute.For <IPluginConfiguration>(); _pluginConfiguration.ExcludedSeriesNames.Returns(Enumerable.Empty <string>()); _seriesProvider = new SeriesProvider(_logManager, _mediaItemProcessor, _pluginConfiguration); }
public RefreshEpisodeMetadata(MediaFileProvider mediaFileProvider, SeriesProvider seriesProvider, MetadataProvider metadataProvider) { _mediaFileProvider = mediaFileProvider; _seriesProvider = seriesProvider; _metadataProvider = metadataProvider; }
public EpisodeSearch(SeriesProvider seriesProvider, EpisodeProvider episodeProvider, DownloadProvider downloadProvider, IndexerProvider indexerProvider, SceneMappingProvider sceneMappingProvider, AllowedDownloadSpecification allowedDownloadSpecification, SearchHistoryProvider searchHistoryProvider) : base(seriesProvider, episodeProvider, downloadProvider, indexerProvider, sceneMappingProvider, allowedDownloadSpecification, searchHistoryProvider) { }
public DiskScanJob(SeriesProvider seriesProvider, DiskScanProvider diskScanProvider, ConfigProvider configProvider) { _seriesProvider = seriesProvider; _diskScanProvider = diskScanProvider; _configProvider = configProvider; }
public DailyEpisodeSearch(SeriesProvider seriesProvider, EpisodeProvider episodeProvider, DownloadProvider downloadProvider, IndexerProvider indexerProvider, SceneMappingProvider sceneMappingProvider, AllowedDownloadSpecification allowedDownloadSpecification, SearchHistoryProvider searchHistoryProvider) : base(seriesProvider, episodeProvider, downloadProvider, indexerProvider, sceneMappingProvider, allowedDownloadSpecification, searchHistoryProvider) { }
public UpdateInfoJob(SeriesProvider seriesProvider, EpisodeProvider episodeProvider, ReferenceDataProvider referenceDataProvider, ConfigProvider configProvider) { _seriesProvider = seriesProvider; _episodeProvider = episodeProvider; _referenceDataProvider = referenceDataProvider; _configProvider = configProvider; }
// // GET: /Series/ public SeriesController(SeriesProvider seriesProvider, QualityProvider qualityProvider, JobProvider jobProvider, SeasonProvider seasonProvider, ConfigProvider configProvider) { _seriesProvider = seriesProvider; _qualityProvider = qualityProvider; _jobProvider = jobProvider; _seasonProvider = seasonProvider; _configProvider = configProvider; }
public RenameSeasonJob(MediaFileProvider mediaFileProvider, DiskScanProvider diskScanProvider, ExternalNotificationProvider externalNotificationProvider, SeriesProvider seriesProvider, MetadataProvider metadataProvider) { _mediaFileProvider = mediaFileProvider; _diskScanProvider = diskScanProvider; _externalNotificationProvider = externalNotificationProvider; _seriesProvider = seriesProvider; _metadataProvider = metadataProvider; }
public UserSeriesPageViewModel( SeriesProvider seriesRepository, UserProvider userProvider, PageManager pageManager, AddSubscriptionCommand addSubscriptionCommand ) { _seriesProvider = seriesRepository; _userProvider = userProvider; _pageManager = pageManager; AddSubscriptionCommand = addSubscriptionCommand; }
protected SearchBase(SeriesProvider seriesProvider, EpisodeProvider episodeProvider, DownloadProvider downloadProvider, IndexerProvider indexerProvider, SceneMappingProvider sceneMappingProvider, AllowedDownloadSpecification allowedDownloadSpecification, SearchHistoryProvider searchHistoryProvider) { _seriesProvider = seriesProvider; _episodeProvider = episodeProvider; _downloadProvider = downloadProvider; _indexerProvider = indexerProvider; _sceneMappingProvider = sceneMappingProvider; _allowedDownloadSpecification = allowedDownloadSpecification; _searchHistoryProvider = searchHistoryProvider; }
public AddSubscriptionCommand( SubscriptionManager subscriptionManager, UserProvider userProvider, ChannelProvider channelProvider, NotificationService notificationService, SeriesProvider seriesRepository ) { _subscriptionManager = subscriptionManager; _userProvider = userProvider; _channelProvider = channelProvider; _notificationService = notificationService; _seriesRepository = seriesRepository; }
public AddSeriesController(RootDirProvider rootFolderProvider, ConfigProvider configProvider, QualityProvider qualityProvider, TvDbProvider tvDbProvider, SeriesProvider seriesProvider, JobProvider jobProvider, DiskProvider diskProvider) { _rootFolderProvider = rootFolderProvider; _configProvider = configProvider; _qualityProvider = qualityProvider; _tvDbProvider = tvDbProvider; _seriesProvider = seriesProvider; _jobProvider = jobProvider; _diskProvider = diskProvider; }
public ImportNewSeriesJob(SeriesProvider seriesProvider, EpisodeProvider episodeProvider, MediaFileProvider mediaFileProvider, UpdateInfoJob updateInfoJob, DiskScanJob diskScanJob, BannerDownloadJob bannerDownloadJob, SeasonProvider seasonProvider, XemUpdateJob xemUpdateJob) { _seriesProvider = seriesProvider; _episodeProvider = episodeProvider; _mediaFileProvider = mediaFileProvider; _updateInfoJob = updateInfoJob; _diskScanJob = diskScanJob; _bannerDownloadJob = bannerDownloadJob; _seasonProvider = seasonProvider; _xemUpdateJob = xemUpdateJob; }
public SettingsController(ConfigProvider configProvider, IndexerProvider indexerProvider, QualityProvider qualityProvider, AutoConfigureProvider autoConfigureProvider, SeriesProvider seriesProvider, ExternalNotificationProvider externalNotificationProvider, QualityTypeProvider qualityTypeProvider, ConfigFileProvider configFileProvider, NewznabProvider newznabProvider, MetadataProvider metadataProvider, JobProvider jobProvider) { _externalNotificationProvider = externalNotificationProvider; _qualityTypeProvider = qualityTypeProvider; _configFileProvider = configFileProvider; _newznabProvider = newznabProvider; _metadataProvider = metadataProvider; _jobProvider = jobProvider; _configProvider = configProvider; _indexerProvider = indexerProvider; _qualityProvider = qualityProvider; _autoConfigureProvider = autoConfigureProvider; _seriesProvider = seriesProvider; }
public SubscriptionManager( SubscriptionRegistrationRepository subscriptionRegistrationRepository, SubscriptionFeedResultRepository subscriptionFeedResultRepository, ChannelProvider channelProvider, SearchProvider searchProvider, UserProvider userProvider, MylistProvider mylistProvider, NicoVideoProvider nicoVideoProvider, SeriesProvider seriesRepository, NicoVideoOwnerCacheRepository nicoVideoOwnerRepository ) { _subscriptionRegistrationRepository = subscriptionRegistrationRepository; _subscriptionFeedResultRepository = subscriptionFeedResultRepository; _channelProvider = channelProvider; _searchProvider = searchProvider; _userProvider = userProvider; _mylistProvider = mylistProvider; _nicoVideoProvider = nicoVideoProvider; _seriesRepository = seriesRepository; _nicoVideoOwnerRepository = nicoVideoOwnerRepository; }
public SeriesPageViewModel( ILoggerFactory loggerFactory, SeriesProvider seriesRepository, VideoPlayWithQueueCommand videoPlayWithQueueCommand, AddSubscriptionCommand addSubscriptionCommand, SelectionModeToggleCommand selectionModeToggleCommand, PlaylistPlayAllCommand playlistPlayAllCommand ) : base(loggerFactory.CreateLogger <SeriesPageViewModel>()) { _seriesProvider = seriesRepository; VideoPlayWithQueueCommand = videoPlayWithQueueCommand; AddSubscriptionCommand = addSubscriptionCommand; SelectionModeToggleCommand = selectionModeToggleCommand; PlaylistPlayAllCommand = playlistPlayAllCommand; CurrentPlaylistToken = Observable.CombineLatest( this.ObserveProperty(x => x.SeriesVideoPlaylist), this.ObserveProperty(x => x.SelectedSortOption), (x, y) => new PlaylistToken(x, y) ) .ToReadOnlyReactivePropertySlim() .AddTo(_CompositeDisposable); }
public MonitoredEpisodeSpecification(SeriesProvider seriesProvider, EpisodeProvider episodeProvider) { _seriesProvider = seriesProvider; _episodeProvider = episodeProvider; }
public DeleteSeriesJob(SeriesProvider seriesProvider, RecycleBinProvider recycleBinProvider) { _seriesProvider = seriesProvider; _recycleBinProvider = recycleBinProvider; }
public SeriesProviderEntryPoint(IApplicationHost applicationHost) { this.seriesProvider = DependencyConfiguration.Resolve <SeriesProvider>(applicationHost); }
public MediaSyncService(SeriesProvider seriesProvider) { _seriesProvider = seriesProvider; }
public BannerDownloadJob(SeriesProvider seriesProvider, BannerProvider bannerProvider) { _seriesProvider = seriesProvider; _bannerProvider = bannerProvider; }
public SeriesController(SeriesProvider seriesProvider) { _seriesProvider = seriesProvider; }
public SeriesVideoPlaylistFactory(SeriesProvider seriesProvider) { _seriesProvider = seriesProvider; }