mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
save to xml before db
This commit is contained in:
parent
c620129b89
commit
84a7f6acd9
@ -1288,15 +1288,15 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||||||
/// <returns>Task.</returns>
|
/// <returns>Task.</returns>
|
||||||
public async Task UpdateItem(BaseItem item, ItemUpdateType updateReason, CancellationToken cancellationToken)
|
public async Task UpdateItem(BaseItem item, ItemUpdateType updateReason, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
await ItemRepository.SaveItem(item, cancellationToken).ConfigureAwait(false);
|
|
||||||
|
|
||||||
UpdateItemInLibraryCache(item);
|
|
||||||
|
|
||||||
if (item.LocationType == LocationType.FileSystem)
|
if (item.LocationType == LocationType.FileSystem)
|
||||||
{
|
{
|
||||||
await SaveMetadata(item, updateReason).ConfigureAwait(false);
|
await SaveMetadata(item, updateReason).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await ItemRepository.SaveItem(item, cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
|
UpdateItemInLibraryCache(item);
|
||||||
|
|
||||||
if (ItemUpdated != null)
|
if (ItemUpdated != null)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
Loading…
x
Reference in New Issue
Block a user