* clean up genre, tag, studio orphans * enforce foreign keys at connection level * wip * fix fragment scroll offset * fix see all link for music videos * add fake artist metadata * not null artist id * add artist scanning * remove improperly named music videos * code cleanup * add artists to search results and collections * clean up music video metadata / artist * add artist view * show music videos on artist page * add music video artwork placeholder
27 lines
1.1 KiB
C#
27 lines
1.1 KiB
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using ErsatzTV.Core.Domain;
|
|
using LanguageExt;
|
|
|
|
namespace ErsatzTV.Core.Interfaces.Repositories
|
|
{
|
|
public interface IMetadataRepository
|
|
{
|
|
Task<bool> RemoveGenre(Genre genre);
|
|
Task<bool> RemoveTag(Tag tag);
|
|
Task<bool> RemoveStudio(Studio studio);
|
|
Task<bool> RemoveStyle(Style style);
|
|
Task<bool> RemoveMood(Mood mood);
|
|
Task<bool> Update(Domain.Metadata metadata);
|
|
Task<bool> Add(Domain.Metadata metadata);
|
|
Task<bool> UpdateLocalStatistics(int mediaVersionId, MediaVersion incoming, bool updateVersion = true);
|
|
Task<bool> UpdatePlexStatistics(int mediaVersionId, MediaVersion incoming);
|
|
Task<Unit> UpdateArtworkPath(Artwork artwork);
|
|
Task<Unit> AddArtwork(Domain.Metadata metadata, Artwork artwork);
|
|
Task<Unit> RemoveArtwork(Domain.Metadata metadata, ArtworkKind artworkKind);
|
|
Task<Unit> MarkAsUpdated(ShowMetadata metadata, DateTime dateUpdated);
|
|
Task<Unit> MarkAsUpdated(SeasonMetadata metadata, DateTime dateUpdated);
|
|
Task<Unit> MarkAsUpdated(MovieMetadata metadata, DateTime dateUpdated);
|
|
}
|
|
}
|