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.
 
 
 

18 lines
783 B

using ErsatzTV.Core.Domain;
using ErsatzTV.Core.Metadata;
namespace ErsatzTV.Core.Interfaces.Repositories;
public interface IRemoteStreamRepository
{
Task<Either<BaseError, MediaItemScanResult<RemoteStream>>> GetOrAdd(
LibraryPath libraryPath,
LibraryFolder libraryFolder,
string path,
CancellationToken cancellationToken);
Task<IEnumerable<string>> FindRemoteStreamPaths(LibraryPath libraryPath, CancellationToken cancellationToken);
Task<List<int>> DeleteByPath(LibraryPath libraryPath, string path, CancellationToken cancellationToken);
Task<bool> AddTag(RemoteStreamMetadata metadata, Tag tag, CancellationToken cancellationToken);
Task UpdateDefinition(RemoteStream remoteStream, CancellationToken cancellationToken);
}