* sync guids/provider ids (#227) * sync guids from plex * cleanup * sync local guids * sync jellyfin and emby guids * add episodes to search index (#228) * sync episode directors and writers * display episode writers and directors * remove missing episodes from search index * show episodes in search results * fix emby and jellyfin episode updates * fix updating plex episodes * don't delete channel logos on startup * add episodes page; fix adding episodes to collection * cleanup * multi-part episode grouping fixes (#229)
63 lines
2.0 KiB
C#
63 lines
2.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using ErsatzTV.Core.Domain;
|
|
using ErsatzTV.Core.Plex;
|
|
using LanguageExt;
|
|
|
|
namespace ErsatzTV.Core.Interfaces.Plex
|
|
{
|
|
public interface IPlexServerApiClient
|
|
{
|
|
Task<Either<BaseError, List<PlexLibrary>>> GetLibraries(
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, List<PlexMovie>>> GetMovieLibraryContents(
|
|
PlexLibrary library,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, List<PlexShow>>> GetShowLibraryContents(
|
|
PlexLibrary library,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, List<PlexSeason>>> GetShowSeasons(
|
|
PlexLibrary library,
|
|
PlexShow show,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, List<PlexEpisode>>> GetSeasonEpisodes(
|
|
PlexLibrary library,
|
|
PlexSeason season,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, MovieMetadata>> GetMovieMetadata(
|
|
PlexLibrary library,
|
|
string key,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, ShowMetadata>> GetShowMetadata(
|
|
PlexLibrary library,
|
|
string key,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, Tuple<MovieMetadata, MediaVersion>>> GetMovieMetadataAndStatistics(
|
|
PlexLibrary library,
|
|
string key,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
|
|
Task<Either<BaseError, Tuple<EpisodeMetadata, MediaVersion>>> GetEpisodeMetadataAndStatistics(
|
|
PlexLibrary library,
|
|
string key,
|
|
PlexConnection connection,
|
|
PlexServerAuthToken token);
|
|
}
|
|
}
|