Fixed: Parsing Plex Media Server version 1.0

pull/4/head
Mark McDowall 9 years ago
parent c206b83318
commit c8474701a0

@ -69,7 +69,7 @@ namespace NzbDrone.Core.Notifications.Plex
try try
{ {
var rawVersion = GetVersion(settings); var rawVersion = GetVersion(settings);
var version = new Version(Regex.Match(rawVersion, @"^(\d+\.){4}").Value.Trim('.')); var version = new Version(Regex.Match(rawVersion, @"^(\d+[.-]){4}").Value.Trim('.', '-'));
if (version >= new Version(0, 9, 12, 0)) if (version >= new Version(0, 9, 12, 0))
{ {

Loading…
Cancel
Save