* initial plumbing * scan for plex networks * save network contents to db as tags * eliminate network tag id churn * add network and show_network to search index * update last networks scan * show networks on tv show page * update changelog
15 lines
570 B
C#
15 lines
570 B
C#
using ErsatzTV.Core.Domain;
|
|
using ErsatzTV.Core.Plex;
|
|
|
|
namespace ErsatzTV.Core.Interfaces.Repositories;
|
|
|
|
public interface IPlexTelevisionRepository : IMediaServerTelevisionRepository<PlexLibrary, PlexShow, PlexSeason,
|
|
PlexEpisode, PlexItemEtag>
|
|
{
|
|
Task<List<int>> RemoveAllTags(PlexLibrary library, PlexTag tag, System.Collections.Generic.HashSet<int> keep);
|
|
Task<PlexShowAddTagResult> AddTag(PlexShow show, PlexTag tag);
|
|
Task UpdateLastNetworksScan(PlexLibrary library);
|
|
}
|
|
|
|
public record PlexShowAddTagResult(Option<int> Existing, Option<int> Added);
|