diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2020-09-14 18:44:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-14 18:44:17 +0100 |
| commit | f80e181eda2d1bb9348bb2b7e050e51d9948cb41 (patch) | |
| tree | efc303ee20de88fa7192929b36839f25953c2422 /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | d27d2a8990afb80ba137688121f85b831599d45a (diff) | |
Update Emby.Server.Implementations/ApplicationHost.cs
Co-authored-by: Cody Robibero <cody@robibe.ro>
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index d1e28cce5..4cb107f80 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -1080,7 +1080,7 @@ namespace Emby.Server.Implementations } else { - metafile = dir.Split(new char[] { Path.DirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries).Last(); + metafile = dir.Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries)[^1]; // Add it under the path name and version 0.0.0.1. versions.Add((new Version("0.0.0.1"), metafile, dir)); } |
