- Now displays up to 3 songs, 3 artists, and 3 albums like Spotify. The best result will still rise to the top.

https://github.com/Nosrac/LBSpotify
Code: Select all
// 'action' => "open.sh",
// 'actionArgument' => $track->href,
Nosrac wrote:I want each result to open a URL as its action. What's the best way to do that?
In my code, you'll notice I've tried this:Code: Select all
// 'action' => "open.sh",
// 'actionArgument' => $track->href,
Code: Select all
'url'=>$track->href
Code: Select all
'icon' => "at.obdev.LaunchBar:AudioTrackTemplate"
TheEndless wrote:Looks great, but doesn't work on my system. Action always responds with "TypeError: 'undefined' is not an object"
My fault?
Ayla wrote:Hi
Downloaded the latest version, and installed it, but when I try and run it, I get this error:
Code: Select all
08/07/14 13.42.59,334 LaunchBar[44888]: Search Spotify (com.kyleacarson.LaunchBar.action.SearchSpotify): Unhandled Exception in script "default.js": TypeError: 'undefined' is not an object {
}
Code: Select all
function run() {
…
}
Ayla wrote:Yes, it works using space instead of return.
But, no matter what I search for ("Madonna" for example), Spotify tells me: "Your search did not match anything in our catalogue.....", when I press enter on the result in LB.
I'm using the latest Spotify Desktop app.