mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 07:45:26 +03:00
rework storage of PresentationUniqueKey
This commit is contained in:
@@ -412,7 +412,8 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
"SeasonName",
|
||||
"SeasonId",
|
||||
"SeriesId",
|
||||
"SeriesSortName"
|
||||
"SeriesSortName",
|
||||
"PresentationUniqueKey"
|
||||
};
|
||||
|
||||
private readonly string[] _mediaStreamSaveColumns =
|
||||
@@ -918,7 +919,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
_saveItemCommand.GetParameter(index++).Value = GetCleanValue(item.Name);
|
||||
}
|
||||
|
||||
_saveItemCommand.GetParameter(index++).Value = item.PresentationUniqueKey;
|
||||
_saveItemCommand.GetParameter(index++).Value = item.GetPresentationUniqueKey();
|
||||
_saveItemCommand.GetParameter(index++).Value = item.SlugName;
|
||||
_saveItemCommand.GetParameter(index++).Value = item.OriginalTitle;
|
||||
|
||||
@@ -1454,6 +1455,12 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
}
|
||||
index++;
|
||||
|
||||
if (!reader.IsDBNull(index))
|
||||
{
|
||||
item.PresentationUniqueKey = reader.GetString(index);
|
||||
}
|
||||
index++;
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user