Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current song info #135

Closed
jvataja opened this issue Apr 23, 2020 · 8 comments
Closed

Current song info #135

jvataja opened this issue Apr 23, 2020 · 8 comments

Comments

@jvataja
Copy link

jvataja commented Apr 23, 2020

The client can't retrieve the information of song playing currently, says 'no track playing'. On Alfred 4.0.9 [1144], MacOS 10.14.6.

@jvataja

This comment has been minimized.

@citelao
Copy link
Owner

citelao commented Apr 24, 2020

What happens in the AppleScript "Script Editor" app when you run this?

tell application "Spotify"
	name of current track
end tell

It should output the current song at the bottom.

@jvataja
Copy link
Author

jvataja commented Apr 24, 2020

It almost always returns an empty string. However, sometimes it's working how it should and I can't figure out why. The script returned correct info before Alfred/Spotify-for-Alfred. Is there any fallback to use Spotify API to get song info?

@citelao
Copy link
Owner

citelao commented Apr 24, 2020

I haven't implemented anything that calls out to the Spotify API, but I think it might be possible. You may need a Premium account to do it. I worry that API calls will be too slow for general use, though.

If you restart your computer and don't use Spotifious (but open the Spotify app), do you reliably get a result?

@fusion2004
Copy link

I'm seeing the same thing as well, and similarly running that script in the script editor is returning a blank string.

@citelao
Copy link
Owner

citelao commented May 25, 2020

What version of Spotify are you running? (Spotify> About Spotify).

I'm running 1.1.26.501.gbe11e53b, and the script works correctly for me with no issues.

@citelao
Copy link
Owner

citelao commented May 25, 2020

Updating to 1.1.33.569.gced9e0f5 and the script fails.

However, this provides output:

tell application "Spotify"
	id of current track
end tell

Is this the same for you? Looks like Spotify doesn't give out the name anymore (ugh).

@citelao
Copy link
Owner

citelao commented Jan 17, 2022

Seems to be working on newer versions of Spotify, like 1.1.48.625.g1c87c7f7-a.

@citelao citelao closed this as completed Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants