From e98f7398b03a91c22af4577d32db2c378de66261 Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 28 Dec 2017 23:08:13 -0500 Subject: [PATCH] Fix syntax SkyHookProxy GUID check --- src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs index b8c24ba22..31bd80c3d 100644 --- a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs @@ -96,8 +96,9 @@ namespace NzbDrone.Core.MetadataSource.SkyHook if (lowerTitle.StartsWith("lidarr:") || lowerTitle.StartsWith("lidarrid:")) { var slug = lowerTitle.Split(':')[1].Trim(); + Guid searchGuid; - bool isValid = Guid.TryParse(slug, out var searchGuid); + bool isValid = Guid.TryParse(slug, out searchGuid); if (slug.IsNullOrWhiteSpace() || slug.Any(char.IsWhiteSpace) || isValid == false) {