mirror of https://github.com/ErsatzTV/ErsatzTV.git
20 changed files with 79 additions and 34 deletions
@ -1,10 +1,11 @@
@@ -1,10 +1,11 @@
|
||||
using ErsatzTV.Core; |
||||
using ErsatzTV.Core.Metadata; |
||||
using LanguageExt; |
||||
using MediatR; |
||||
|
||||
namespace ErsatzTV.Application.MediaSources.Commands |
||||
{ |
||||
public record ScanLocalMediaSource(int MediaSourceId, bool RefreshAllMetadata) : |
||||
public record ScanLocalMediaSource(int MediaSourceId, ScanningMode ScanningMode) : |
||||
IRequest<Either<BaseError, string>>, |
||||
IBackgroundServiceRequest; |
||||
} |
||||
|
||||
@ -1,11 +1,15 @@
@@ -1,11 +1,15 @@
|
||||
using System.Threading.Tasks; |
||||
using ErsatzTV.Core.Domain; |
||||
using ErsatzTV.Core.Metadata; |
||||
using LanguageExt; |
||||
|
||||
namespace ErsatzTV.Core.Interfaces.Metadata |
||||
{ |
||||
public interface ILocalMediaScanner |
||||
{ |
||||
Task<Unit> ScanLocalMediaSource(LocalMediaSource localMediaSource, string ffprobePath, bool refreshAllMetadata); |
||||
Task<Unit> ScanLocalMediaSource( |
||||
LocalMediaSource localMediaSource, |
||||
string ffprobePath, |
||||
ScanningMode scanningMode); |
||||
} |
||||
} |
||||
|
||||
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
namespace ErsatzTV.Core.Metadata |
||||
{ |
||||
public enum ScanningMode |
||||
{ |
||||
Default = 0, |
||||
RescanAll = 1 |
||||
} |
||||
} |
||||
Loading…
Reference in new issue