Stream custom live channels using your own media
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
955 B

using ErsatzTV.Core.Domain;
using ErsatzTV.Core.Plex;
namespace ErsatzTV.Core.Interfaces.Repositories;
public interface IPlexTelevisionRepository : IMediaServerTelevisionRepository<PlexLibrary, PlexShow, PlexSeason,
PlexEpisode, PlexItemEtag>
{
Task<List<int>> RemoveAllTags(
PlexLibrary library,
PlexTag tag,
System.Collections.Generic.HashSet<int> keep,
CancellationToken cancellationToken);
Task<PlexShowAddTagResult> AddTag(
PlexLibrary library,
PlexShow show,
PlexTag tag,
CancellationToken cancellationToken);
Task UpdateLastNetworksScan(PlexLibrary library, CancellationToken cancellationToken);
Task<Option<PlexShowTitleKeyResult>> GetShowTitleKey(int libraryId, int showId, CancellationToken cancellationToken);
}
public record PlexShowAddTagResult(Option<int> Existing, Option<int> Added);
public record PlexShowTitleKeyResult(string Title, string Key);