media source scan interval (#28)
* scan media sources once every six hours * cleanup * force scan from ui
This commit is contained in:
@@ -82,7 +82,7 @@ namespace ErsatzTV.Services
|
||||
if (_entityLocker.LockMediaSource(mediaSourceId))
|
||||
{
|
||||
await _channel.WriteAsync(
|
||||
new ScanLocalMediaSource(mediaSourceId),
|
||||
new ScanLocalMediaSourceIfNeeded(mediaSourceId),
|
||||
cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user