* flag local movies as file not found * show warning icon on cards * unflag movie that is found during scan * skip missing files when building playouts * add state to search index * add file not found health check * link to search from file not found health check * support flagging other media kinds as file not found * continue to schedule missing items * support episode files not found * wip trash page * fix trash url * trash page is functional * update changelog * fix changelog merge
25 lines
1019 B
C#
25 lines
1019 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using ErsatzTV.Core.Domain;
|
|
using LanguageExt;
|
|
|
|
namespace ErsatzTV.Core.Interfaces.Repositories
|
|
{
|
|
public interface ILibraryRepository
|
|
{
|
|
Task<LibraryPath> Add(LibraryPath libraryPath);
|
|
Task<Option<Library>> Get(int libraryId);
|
|
Task<Option<LocalLibrary>> GetLocal(int libraryId);
|
|
Task<List<Library>> GetAll();
|
|
Task<Unit> UpdateLastScan(Library library);
|
|
Task<Unit> UpdateLastScan(LibraryPath libraryPath);
|
|
Task<List<LibraryPath>> GetLocalPaths(int libraryId);
|
|
Task<Option<LibraryPath>> GetPath(int libraryPathId);
|
|
Task<int> CountMediaItemsByPath(int libraryPathId);
|
|
Task<List<int>> GetMediaIdsByLocalPath(int libraryPathId);
|
|
Task DeleteLocalPath(int libraryPathId);
|
|
Task<Unit> SetEtag(LibraryPath libraryPath, Option<LibraryFolder> knownFolder, string path, string etag);
|
|
Task<Unit> CleanEtagsForLibraryPath(LibraryPath libraryPath);
|
|
}
|
|
}
|