* spike new scanner * add existing items to new scanner * add collection refresh actions * add tv show metadata and posters * update metadata and posters when nfo/poster files are updated * add "remove" action, test for all supported file extensions * update statistics when primary video file is updated * reflect that collections are "sourced" from nfo * implement most scanning actions * cleanup * fix startup * cross-platform scanner tests
16 lines
541 B
C#
16 lines
541 B
C#
using System;
|
|
using ErsatzTV.Core.Domain;
|
|
using LanguageExt;
|
|
|
|
namespace ErsatzTV.Core.Interfaces.Metadata
|
|
{
|
|
public interface ILocalFileSystem
|
|
{
|
|
public DateTime GetLastWriteTime(string path);
|
|
public bool IsMediaSourceAccessible(LocalMediaSource localMediaSource);
|
|
public Seq<string> FindRelevantVideos(LocalMediaSource localMediaSource);
|
|
public bool ShouldRefreshMetadata(LocalMediaSource localMediaSource, MediaItem mediaItem);
|
|
public bool ShouldRefreshPoster(MediaItem mediaItem);
|
|
}
|
|
}
|