mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-08-11 09:13:54 -04:00
Only remove image file if it exists (#14302)
This commit is contained in:
parent
2d9257b203
commit
aa05185917
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user