* add letter bar with no links * use lucene for search, add paged search results * add search index version * index library_name; rebuild index when folder is missing * maintain index as local movies change * fix tests * maintain index as local shows change * maintain index as plex movies change * maintain index as plex shows change * code cleanup * add duplicate filter to search * add links to letter bar * code cleanup
98 lines
4.4 KiB
C#
98 lines
4.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using ErsatzTV.Core.Domain;
|
|
using ErsatzTV.Core.Interfaces.Repositories;
|
|
using ErsatzTV.Core.Metadata;
|
|
using LanguageExt;
|
|
|
|
namespace ErsatzTV.Core.Tests.Fakes
|
|
{
|
|
public class FakeTelevisionRepository : ITelevisionRepository
|
|
{
|
|
public Task<bool> AllShowsExist(List<int> showIds) => throw new NotSupportedException();
|
|
|
|
public Task<List<Show>> GetAllShows() => throw new NotSupportedException();
|
|
|
|
public Task<Option<Show>> GetShow(int showId) => throw new NotSupportedException();
|
|
|
|
public Task<int> GetShowCount() => throw new NotSupportedException();
|
|
|
|
public Task<List<ShowMetadata>> GetPagedShows(int pageNumber, int pageSize) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<List<ShowMetadata>> GetShowsForCards(List<int> ids) => throw new NotSupportedException();
|
|
|
|
public Task<List<Episode>> GetShowItems(int showId) => throw new NotSupportedException();
|
|
|
|
public Task<List<Season>> GetAllSeasons() => throw new NotSupportedException();
|
|
|
|
public Task<Option<Season>> GetSeason(int seasonId) => throw new NotSupportedException();
|
|
|
|
public Task<int> GetSeasonCount(int showId) => throw new NotSupportedException();
|
|
|
|
public Task<List<Season>> GetPagedSeasons(int televisionShowId, int pageNumber, int pageSize) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<List<Episode>> GetSeasonItems(int seasonId) => throw new NotSupportedException();
|
|
|
|
public Task<Option<Episode>> GetEpisode(int episodeId) => throw new NotSupportedException();
|
|
|
|
public Task<int> GetEpisodeCount(int seasonId) => throw new NotSupportedException();
|
|
|
|
public Task<List<EpisodeMetadata>> GetPagedEpisodes(int seasonId, int pageNumber, int pageSize) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<Option<Show>> GetShowByMetadata(int libraryPathId, ShowMetadata metadata) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<Either<BaseError, MediaItemScanResult<Show>>>
|
|
AddShow(int libraryPathId, string showFolder, ShowMetadata metadata) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<Either<BaseError, Season>> GetOrAddSeason(Show show, int libraryPathId, int seasonNumber) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<Either<BaseError, Episode>> GetOrAddEpisode(Season season, LibraryPath libraryPath, string path) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<IEnumerable<string>> FindEpisodePaths(LibraryPath libraryPath) => throw new NotSupportedException();
|
|
|
|
public Task<Unit> DeleteByPath(LibraryPath libraryPath, string path) => throw new NotSupportedException();
|
|
|
|
public Task<Unit> DeleteEmptySeasons(LibraryPath libraryPath) => throw new NotSupportedException();
|
|
|
|
public Task<List<int>> DeleteEmptyShows(LibraryPath libraryPath) => throw new NotSupportedException();
|
|
|
|
public Task<Either<BaseError, MediaItemScanResult<PlexShow>>> GetOrAddPlexShow(
|
|
PlexLibrary library,
|
|
PlexShow item) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<Either<BaseError, PlexSeason>> GetOrAddPlexSeason(PlexLibrary library, PlexSeason item) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<Either<BaseError, PlexEpisode>> GetOrAddPlexEpisode(PlexLibrary library, PlexEpisode item) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<bool> AddGenre(ShowMetadata metadata, Genre genre) => throw new NotSupportedException();
|
|
|
|
public Task<List<int>> RemoveMissingPlexShows(PlexLibrary library, List<string> showKeys) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<Unit> RemoveMissingPlexSeasons(string showKey, List<string> seasonKeys) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<Unit> RemoveMissingPlexEpisodes(string seasonKey, List<string> episodeKeys) =>
|
|
throw new NotSupportedException();
|
|
|
|
public Task<Unit> SetEpisodeNumber(Episode episode, int episodeNumber) => throw new NotSupportedException();
|
|
|
|
public Task<bool> Update(Show show) => throw new NotSupportedException();
|
|
|
|
public Task<bool> Update(Season season) => throw new NotSupportedException();
|
|
|
|
public Task<bool> Update(Episode episode) => throw new NotSupportedException();
|
|
}
|
|
}
|