The Free Software Media System - Server Backend & API
Update ApplicationHost.cs
BaronGreenback60e8f47194d0
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex a6b6505bf9..1bc436820e 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -1049,11 +1049,11 @@ namespace Emby.Server.Implementationsforeach (var dir in directories){- int p = dir.LastIndexOf('_');- if (p != -1 && Version.TryParse(dir.Substring(p + 1), out Version ver))+ int underscoreIndex = dir.LastIndexOf('_');+ if (underscoreIndex != -1 && Version.TryParse(dir.Substring(underscoreIndex + 1), out Version ver)){// Versioned folder.- versions.Add((ver, dir.Substring(0, p), dir));+ versions.Add((ver, dir.Substring(0, underscoreIndex), dir));}else{