media source scan interval (#28)

* scan media sources once every six hours

* cleanup

* force scan from ui
This commit is contained in:
Jason Dove
2021-02-22 19:01:58 +00:00
committed by GitHub
parent 871a031467
commit 38ab6c00ab
16 changed files with 1431 additions and 35 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ namespace ErsatzTV.Services
if (_entityLocker.LockMediaSource(mediaSourceId))
{
await _channel.WriteAsync(
new ScanLocalMediaSource(mediaSourceId),
new ScanLocalMediaSourceIfNeeded(mediaSourceId),
cancellationToken);
}
}
+1 -1
View File
@@ -55,7 +55,7 @@ namespace ErsatzTV.Services
buildPlayout.PlayoutId,
error.Value));
break;
case ScanLocalMediaSource scanLocalMediaSource:
case IScanLocalMediaSource scanLocalMediaSource:
Either<BaseError, string> scanResult = await mediator.Send(
scanLocalMediaSource,
cancellationToken);