Fixed: Properly detect failed responses from Navidrome

This commit is contained in:
ta264 2021-01-06 21:03:45 +00:00
parent 24f96fa2a4
commit 2499bb593a

View file

@ -105,7 +105,7 @@ namespace NzbDrone.Core.Notifications.Subsonic
throw new SubsonicException("Invalid Response, Check Server Settings"); throw new SubsonicException("Invalid Response, Check Server Settings");
} }
if (status == "failed") if (status != "ok")
{ {
var ns = xDoc.Root.GetDefaultNamespace(); var ns = xDoc.Root.GetDefaultNamespace();
var error = xDoc.Root.Element(XName.Get("error", ns.ToString())); var error = xDoc.Root.Element(XName.Get("error", ns.ToString()));