Files
ersatztv/ErsatzTV.Core/Interfaces/Repositories/IMediaServerOtherVideoRepository.cs
T
Jason DoveandGitHub 7e30444857 dependencies and code cleanup (#2117)
* fix validation in new form layout

* pin mediatr to last oss version

* update dependencies

* cleanup code in core

* cleanup code in ffmpeg

* cleanup code in infra

* cleanup code in scanner

* cleanup code in application

* cleanup main code

* cleanup test code

* solution-wide code cleanup
2025-07-06 15:56:17 +00:00

23 lines
889 B
C#

using ErsatzTV.Core.Domain;
using ErsatzTV.Core.Metadata;
namespace ErsatzTV.Core.Interfaces.Repositories;
public interface IMediaServerOtherVideoRepository<in TLibrary, TOtherVideo, TEtag> where TLibrary : Library
where TOtherVideo : OtherVideo
where TEtag : MediaServerItemEtag
{
Task<List<TEtag>> GetExistingOtherVideos(TLibrary library);
Task<Option<int>> FlagNormal(TLibrary library, TOtherVideo otherVideo);
Task<Option<int>> FlagUnavailable(TLibrary library, TOtherVideo otherVideo);
Task<Option<int>> FlagRemoteOnly(TLibrary library, TOtherVideo otherVideo);
Task<List<int>> FlagFileNotFound(TLibrary library, List<string> movieItemIds);
Task<Either<BaseError, MediaItemScanResult<TOtherVideo>>> GetOrAdd(
TLibrary library,
TOtherVideo item,
bool deepScan);
Task<Unit> SetEtag(TOtherVideo otherVideo, string etag);
}