Only remove image file if it exists (#14302)

This commit is contained in:
Tim Eisele 2025-06-15 23:19:30 +02:00 committed by GitHub
parent 2d9257b203
commit aa05185917
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2002,9 +2002,10 @@ namespace MediaBrowser.Controller.Entities
} }
// Remove from file system // Remove from file system
if (info.IsLocalFile) var path = info.Path;
if (info.IsLocalFile && !string.IsNullOrWhiteSpace(path))
{ {
FileSystem.DeleteFile(info.Path); FileSystem.DeleteFile(path);
} }
// Remove from item // Remove from item