mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 10:43:30 +01:00
Fix extracted data cleanup in cleanup post scan task (#14083)
This commit is contained in:
@@ -330,15 +330,10 @@ namespace MediaBrowser.Providers.Manager
|
||||
item.DateCreated = info.CreationTimeUtc;
|
||||
}
|
||||
|
||||
var size = info.Length;
|
||||
if (item is Video video)
|
||||
{
|
||||
var videoType = video.VideoType;
|
||||
if (videoType == VideoType.BluRay || video.VideoType == VideoType.Dvd)
|
||||
{
|
||||
Logger.LogInformation("File changed, pruning extracted data: {Path}", item.Path);
|
||||
ExternalDataManager.DeleteExternalItemDataAsync(video, CancellationToken.None).GetAwaiter().GetResult();
|
||||
}
|
||||
Logger.LogInformation("File changed, pruning extracted data: {Path}", item.Path);
|
||||
ExternalDataManager.DeleteExternalItemDataAsync(video, CancellationToken.None).GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
updateType |= ItemUpdateType.MetadataImport;
|
||||
|
||||
Reference in New Issue
Block a user