Backport pull request #15325 from jellyfin/release-10.11.z

Update file size when refreshing metadata

Original-merge: f994dd6211

Merged-by: crobibero <cody@robibe.ro>

Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
vinnyspb 2025-11-02 21:58:44 -05:00 committed by Joshua M. Boniface
parent c9d93b0745
commit 871de372ff
1 changed files with 5 additions and 0 deletions

View File

@ -229,6 +229,11 @@ namespace MediaBrowser.Providers.Manager
if (file is not null)
{
item.DateModified = file.LastWriteTimeUtc;
if (!file.IsDirectory)
{
item.Size = file.Length;
}
}
}