From c9134cfbb93e6779df1cd4876c51bb474cd6c8a0 Mon Sep 17 00:00:00 2001 From: Espen Aa Ljosland Date: Tue, 8 Sep 2015 09:58:39 +0200 Subject: [PATCH] Fixed actionHandler Browse not working if options.BrowseFlag is an array --- lib/services/ContentDirectory.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/ContentDirectory.coffee b/lib/services/ContentDirectory.coffee index cfb8ea9..d6db892 100644 --- a/lib/services/ContentDirectory.coffee +++ b/lib/services/ContentDirectory.coffee @@ -56,7 +56,7 @@ class ContentDirectory extends Service browseCallback = (err, resp) => cb null, (if err? then @buildSoapError(err) else resp) - switch options?.BrowseFlag + switch options?.BrowseFlag?.toString() when 'BrowseMetadata' @browseMetadata options, browseCallback when 'BrowseDirectChildren'