Fix syntax SkyHookProxy GUID check

This commit is contained in:
Qstick 2017-12-28 23:08:13 -05:00
parent 9cd60bc986
commit e98f7398b0
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{