mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-25 02:11:45 +00:00
Update file size when refreshing metadata (#15325)
This commit is contained in:
parent
da254ee968
commit
f994dd6211
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