diff options
| author | Tim Eisele <Ghost_of_Stone@web.de> | 2025-06-15 23:19:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-15 15:19:30 -0600 |
| commit | aa05185917339d3c80183b8304302d3c8433cfbb (patch) | |
| tree | 2f15b499e27d4e5a25d88f99a4b70c7b9777bf01 /MediaBrowser.Controller/Entities/BaseItem.cs | |
| parent | 2d9257b20347bdfc7e59879103e6aea57fc0a6ca (diff) | |
Only remove image file if it exists (#14302)
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index c2efa4ad3..96984758f 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -2002,9 +2002,10 @@ namespace MediaBrowser.Controller.Entities } // 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 |
