[LB6 Action] Search Spotify (with predictions) [V 2.0]

Sharing and discussing custom actions for LaunchBar
robynw
Posts: 3
Joined: Mon Jul 07, 2014 9:55 pm

Re: [LB6 Action] Search Spotify (with predictions) [V 1.5]

Postby robynw » Tue Jul 08, 2014 6:49 pm

Using space key worked. Thanks!

Ayla
Posts: 17
Joined: Mon Jul 07, 2014 12:22 pm

Re: [LB6 Action] Search Spotify (with predictions) [V 1.5]

Postby Ayla » Wed Jul 09, 2014 10:20 am

Works now, thanks.

manfred
Objective Development
Objective Development
Posts: 562
Joined: Sat Jul 31, 2010 9:47 am
Location: Vienna
Contact:

Re: [LB6 Action] Search Spotify (with predictions) [V 1.5]

Postby manfred » Tue Aug 05, 2014 11:47 am

@nosrac a few things that came to my mind:

What about using subtitles for the artist instead of adding it to the title? This way the song title
would stand out a lot better I guess.

Looking at the built-in Spotify search, it seems that they implemented a pretty clever search behavior.
Looks like they performing three different searches for the search term, first a search for tracks,
then one for artists and finally one for albums. The result of a search are the top 3 results of each search.

Applying my suggestion, the results would somehow look like this:
Image

matthias
Rank 1
Rank 1
Posts: 21
Joined: Thu May 15, 2008 7:15 pm

Re: [LB6 Action] Search Spotify (with predictions) [V 1.5]

Postby matthias » Tue Aug 12, 2014 1:04 pm

Thanks a lot - love it!

Nosrac
Rank 1
Rank 1
Posts: 33
Joined: Sun Jun 22, 2014 10:07 pm

Re: [LB6 Action] Search Spotify (with predictions) [V 1.5]

Postby Nosrac » Wed Aug 13, 2014 3:38 am

manfred wrote:@nosrac a few things that came to my mind:

What about using subtitles for the artist instead of adding it to the title? This way the song title
would stand out a lot better I guess.

Looking at the built-in Spotify search, it seems that they implemented a pretty clever search behavior.
Looks like they performing three different searches for the search term, first a search for tracks,
then one for artists and finally one for albums. The result of a search are the top 3 results of each search.

Applying my suggestion, the results would somehow look like this:
Image


Good suggestions.... All implemented! I also kept the "Top Result" functionality

manfred
Objective Development
Objective Development
Posts: 562
Joined: Sat Jul 31, 2010 9:47 am
Location: Vienna
Contact:

Re: [LB6 Action] Search Spotify (with predictions) [V 2.0]

Postby manfred » Thu Aug 14, 2014 9:43 am

Nosrac wrote:Good suggestions.... All implemented! I also kept the "Top Result" functionality


Awesome! Do you think I should bundle it with my other Spotify Actions?

Nosrac
Rank 1
Rank 1
Posts: 33
Joined: Sun Jun 22, 2014 10:07 pm

Re: [LB6 Action] Search Spotify (with predictions) [V 2.0]

Postby Nosrac » Mon Aug 18, 2014 3:10 pm

manfred wrote:
Nosrac wrote:Good suggestions.... All implemented! I also kept the "Top Result" functionality


Awesome! Do you think I should bundle it with my other Spotify Actions?


Sure, just include a link to the github page as well

ecormany
Posts: 10
Joined: Fri Jun 20, 2008 4:46 pm

Re: [LB6 Action] Search Spotify (with predictions) [V 2.0]

Postby ecormany » Tue May 17, 2016 4:57 pm

Reviving a very old thread here, I realize… but I found this action on the LB actions directory and installed it. It works for searching, but no type-ahead predictions appear. Is this due to a Spotify change, or am I missing something?

Chazzo
Posts: 9
Joined: Sun May 19, 2013 6:41 pm

Re: [LB6 Action] Search Spotify (with predictions) [V 2.0]

Postby Chazzo » Tue Nov 06, 2018 12:47 pm

ecormany, I think it's because of a change at Spotify. They no longer allow web access without authentication, even for non-personal stuff such as track searches.

The Search Spotify script gets its suggestions through calls like: https://api.spotify.com/v1/search?type=artist&q=Madonna, which now returns an "Unauthorized" code (401) and the message "No token provided". The main search, in contrast, works via the Spotify app, which of course is already authenticated.

Spotify's Web API and Authorization Guide pages explain how to fix this, but it's beyond my skills. Basically I think you have to register as a developer, get some kind of credentials for your app (or script in this case) and add those to the URLs used to search for suggestions.

It would be great if someone could fix this, because it's a really useful LaunchBar action.


Return to “LaunchBar Actions”

Who is online

Users browsing this forum: No registered users and 1 guest