mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
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
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue