aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2020-09-17 15:57:11 +0100
committerGitHub <noreply@github.com>2020-09-17 15:57:11 +0100
commit92b63db569f2e425673eba7d05e66411a9c4c21f (patch)
treebee8f6ff7e8eae76751786daec4babb54d79009c
parent826148dc843616df4157de9f03e025fa60f6147d (diff)
Update ApplicationHost.cs
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index abec4126a..7a46fdf2e 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -1089,8 +1089,8 @@ namespace Emby.Server.Implementations
// No metafile, so lets see if the folder is versioned.
metafile = dir.Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries)[^1];
- int p = dir.LastIndexOf('_');
- if (p != -1 && Version.TryParse(dir.Substring(p + 1), out Version ver))
+ int versionIndex = dir.LastIndexOf('_');
+ if (versionIndex != -1 && Version.TryParse(dir.Substring(versionIndex + 1), out Version ver))
{
// Versioned folder.
versions.Add((ver, metafile, dir));