mirror of https://github.com/jellyfin/jellyfin
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:
parent
c9d93b0745
commit
871de372ff
|
|
@ -229,6 +229,11 @@ namespace MediaBrowser.Providers.Manager
|
|||
if (file is not null)
|
||||
{
|
||||
item.DateModified = file.LastWriteTimeUtc;
|
||||
|
||||
if (!file.IsDirectory)
|
||||
{
|
||||
item.Size = file.Length;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue