fix ProbeProvider.HasChanged: if file date changed (#14674)

This commit is contained in:
evan314159 2025-08-28 07:34:51 +08:00 committed by GitHub
parent 0b465842c8
commit e753adac2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ namespace MediaBrowser.Providers.MediaInfo
if (!string.IsNullOrWhiteSpace(path) && item.IsFileProtocol)
{
var file = directoryService.GetFile(path);
if (file is not null && item.HasChanged(file.LastWriteTimeUtc) && file.Length != item.Size)
if (file is not null && item.HasChanged(file.LastWriteTimeUtc))
{
_logger.LogDebug("Refreshing {ItemPath} due to file system modification.", path);
return true;