mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 06:17:14 -04:00
Add Size to TypedBaseItem
This commit is contained in:
parent
e3b19c22a7
commit
64b6cfa3dc
@ -208,6 +208,7 @@ namespace Emby.Server.Implementations.Data
|
|||||||
AddColumn(db, "TypedBaseItems", "OwnerId", "Text", existingColumnNames);
|
AddColumn(db, "TypedBaseItems", "OwnerId", "Text", existingColumnNames);
|
||||||
AddColumn(db, "TypedBaseItems", "Width", "INT", existingColumnNames);
|
AddColumn(db, "TypedBaseItems", "Width", "INT", existingColumnNames);
|
||||||
AddColumn(db, "TypedBaseItems", "Height", "INT", existingColumnNames);
|
AddColumn(db, "TypedBaseItems", "Height", "INT", existingColumnNames);
|
||||||
|
AddColumn(db, "TypedBaseItems", "Size", "BIGINT", existingColumnNames);
|
||||||
|
|
||||||
existingColumnNames = GetColumnNames(db, "ItemValues");
|
existingColumnNames = GetColumnNames(db, "ItemValues");
|
||||||
AddColumn(db, "ItemValues", "CleanValue", "Text", existingColumnNames);
|
AddColumn(db, "ItemValues", "CleanValue", "Text", existingColumnNames);
|
||||||
@ -347,6 +348,7 @@ namespace Emby.Server.Implementations.Data
|
|||||||
"OfficialRating",
|
"OfficialRating",
|
||||||
"ForcedSortName",
|
"ForcedSortName",
|
||||||
"RunTimeTicks",
|
"RunTimeTicks",
|
||||||
|
"Size",
|
||||||
"DateCreated",
|
"DateCreated",
|
||||||
"DateModified",
|
"DateModified",
|
||||||
"guid",
|
"guid",
|
||||||
@ -459,6 +461,7 @@ namespace Emby.Server.Implementations.Data
|
|||||||
"SortName",
|
"SortName",
|
||||||
"ForcedSortName",
|
"ForcedSortName",
|
||||||
"RunTimeTicks",
|
"RunTimeTicks",
|
||||||
|
"Size",
|
||||||
"DateCreated",
|
"DateCreated",
|
||||||
"DateModified",
|
"DateModified",
|
||||||
"PreferredMetadataLanguage",
|
"PreferredMetadataLanguage",
|
||||||
@ -755,6 +758,7 @@ namespace Emby.Server.Implementations.Data
|
|||||||
saveItemStatement.TryBind("@ForcedSortName", item.ForcedSortName);
|
saveItemStatement.TryBind("@ForcedSortName", item.ForcedSortName);
|
||||||
|
|
||||||
saveItemStatement.TryBind("@RunTimeTicks", item.RunTimeTicks);
|
saveItemStatement.TryBind("@RunTimeTicks", item.RunTimeTicks);
|
||||||
|
saveItemStatement.TryBind("@Size", item.Size);
|
||||||
|
|
||||||
saveItemStatement.TryBind("@DateCreated", item.DateCreated);
|
saveItemStatement.TryBind("@DateCreated", item.DateCreated);
|
||||||
saveItemStatement.TryBind("@DateModified", item.DateModified);
|
saveItemStatement.TryBind("@DateModified", item.DateModified);
|
||||||
@ -1523,6 +1527,12 @@ namespace Emby.Server.Implementations.Data
|
|||||||
}
|
}
|
||||||
index++;
|
index++;
|
||||||
|
|
||||||
|
if (!reader.IsDBNull(index))
|
||||||
|
{
|
||||||
|
item.Size = reader.GetInt64(index);
|
||||||
|
}
|
||||||
|
index++;
|
||||||
|
|
||||||
if (HasField(query, ItemFields.DateCreated))
|
if (HasField(query, ItemFields.DateCreated))
|
||||||
{
|
{
|
||||||
if (!reader.IsDBNull(index))
|
if (!reader.IsDBNull(index))
|
||||||
|
@ -175,6 +175,7 @@ namespace MediaBrowser.Providers.MediaInfo
|
|||||||
{
|
{
|
||||||
video.RunTimeTicks = mediaInfo.RunTimeTicks;
|
video.RunTimeTicks = mediaInfo.RunTimeTicks;
|
||||||
}
|
}
|
||||||
|
video.Size = mediaInfo.Size;
|
||||||
|
|
||||||
if (video.VideoType == VideoType.VideoFile)
|
if (video.VideoType == VideoType.VideoFile)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user