public RemoveItemsFromCollectionHandler( IMediaCollectionRepository mediaCollectionRepository, ChannelWriter <IBackgroundServiceRequest> channel) { _mediaCollectionRepository = mediaCollectionRepository; _channel = channel; }
public UpdateCollectionCustomOrderHandler( IMediaCollectionRepository mediaCollectionRepository, ChannelWriter <IBackgroundServiceRequest> channel) { _mediaCollectionRepository = mediaCollectionRepository; _channel = channel; }
public AddEpisodeToCollectionHandler( IDbContextFactory <TvContext> dbContextFactory, IMediaCollectionRepository mediaCollectionRepository, ChannelWriter <IBackgroundServiceRequest> channel) { _dbContextFactory = dbContextFactory; _mediaCollectionRepository = mediaCollectionRepository; _channel = channel; }
public UpdateCollectionCustomOrderHandler( IDbContextFactory <TvContext> dbContextFactory, IMediaCollectionRepository mediaCollectionRepository, ChannelWriter <IBackgroundServiceRequest> channel) { _dbContextFactory = dbContextFactory; _mediaCollectionRepository = mediaCollectionRepository; _channel = channel; }
public AddEpisodeToCollectionHandler( IMediaCollectionRepository mediaCollectionRepository, ITelevisionRepository televisionRepository, ChannelWriter <IBackgroundServiceRequest> channel) { _mediaCollectionRepository = mediaCollectionRepository; _televisionRepository = televisionRepository; _channel = channel; }
public AddMovieToCollectionHandler( IMediaCollectionRepository mediaCollectionRepository, IMovieRepository movieRepository, ChannelWriter <IBackgroundServiceRequest> channel) { _mediaCollectionRepository = mediaCollectionRepository; _movieRepository = movieRepository; _channel = channel; }
public AddItemsToCollectionHandler( IDbContextFactory <TvContext> dbContextFactory, IMediaCollectionRepository mediaCollectionRepository, IMovieRepository movieRepository, ITelevisionRepository televisionRepository, ChannelWriter <IBackgroundServiceRequest> channel) { _dbContextFactory = dbContextFactory; _mediaCollectionRepository = mediaCollectionRepository; _movieRepository = movieRepository; _televisionRepository = televisionRepository; _channel = channel; }
public static async Task <List <MediaItem> > Collect( IMediaCollectionRepository mediaCollectionRepository, ITelevisionRepository televisionRepository, IArtistRepository artistRepository, CollectionKey collectionKey) { switch (collectionKey.CollectionType) { case ProgramScheduleItemCollectionType.Collection: List <MediaItem> collectionItems = await mediaCollectionRepository.GetItems(collectionKey.CollectionId ?? 0); return(collectionItems); case ProgramScheduleItemCollectionType.TelevisionShow: List <Episode> showItems = await televisionRepository.GetShowItems(collectionKey.MediaItemId ?? 0); return(showItems.Cast <MediaItem>().ToList()); case ProgramScheduleItemCollectionType.TelevisionSeason: List <Episode> seasonItems = await televisionRepository.GetSeasonItems(collectionKey.MediaItemId ?? 0); return(seasonItems.Cast <MediaItem>().ToList()); case ProgramScheduleItemCollectionType.Artist: List <MusicVideo> artistItems = await artistRepository.GetArtistItems(collectionKey.MediaItemId ?? 0); return(artistItems.Cast <MediaItem>().ToList()); case ProgramScheduleItemCollectionType.MultiCollection: List <MediaItem> multiCollectionItems = await mediaCollectionRepository.GetMultiCollectionItems( collectionKey.MultiCollectionId ?? 0); return(multiCollectionItems); case ProgramScheduleItemCollectionType.SmartCollection: List <MediaItem> smartCollectionItems = await mediaCollectionRepository.GetSmartCollectionItems( collectionKey.SmartCollectionId ?? 0); return(smartCollectionItems); default: return(new List <MediaItem>()); } }
public GetPlayoutItemProcessByChannelNumberHandler( IDbContextFactory <TvContext> dbContextFactory, IFFmpegProcessService ffmpegProcessService, ILocalFileSystem localFileSystem, IPlexPathReplacementService plexPathReplacementService, IJellyfinPathReplacementService jellyfinPathReplacementService, IEmbyPathReplacementService embyPathReplacementService, IMediaCollectionRepository mediaCollectionRepository, ITelevisionRepository televisionRepository, IArtistRepository artistRepository, ISongVideoGenerator songVideoGenerator) : base(dbContextFactory) { _ffmpegProcessService = ffmpegProcessService; _localFileSystem = localFileSystem; _plexPathReplacementService = plexPathReplacementService; _jellyfinPathReplacementService = jellyfinPathReplacementService; _embyPathReplacementService = embyPathReplacementService; _mediaCollectionRepository = mediaCollectionRepository; _televisionRepository = televisionRepository; _artistRepository = artistRepository; _songVideoGenerator = songVideoGenerator; }
public GetAllCollectionsHandler(IMediaCollectionRepository mediaCollectionRepository) =>
public GetCollectionByIdHandler(IMediaCollectionRepository mediaCollectionRepository) =>
public DeleteCollectionHandler(IMediaCollectionRepository mediaCollectionRepository) =>
public GetCollectionItemsHandler(IMediaCollectionRepository mediaCollectionRepository) =>
public GetCollectionCardsHandler(IMediaCollectionRepository collectionRepository) =>
public CreateCollectionHandler(IMediaCollectionRepository mediaCollectionRepository) =>