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

Adopt alternative to timed polling for Spotify player status #14

Closed
alexpersian opened this issue Apr 16, 2024 · 4 comments · Fixed by #16
Closed

Adopt alternative to timed polling for Spotify player status #14

alexpersian opened this issue Apr 16, 2024 · 4 comments · Fixed by #16

Comments

@alexpersian
Copy link

please ignore if you've already explored these ideas

There are a couple things from SpotMenu I saw after poking around that might help interfacing with the Spotify client more smoothly; specially around getting the player state.

Referencing the the Spotify app directly

Using notification center for updates (push)

I think with this approach the AppleScript timed polling could be eliminated and even more performance would be found since it won't have to poll while the Spotify isn't active or playing.

@jonathangarelick
Copy link
Owner

This is excellent, I will definitely look into this.

@jonathangarelick
Copy link
Owner

A few tricky edge cases, but this is now working and merged into main. Thanks @alexpersian ! Hopefully will ship this with v1.1 sometime next week.

@alexpersian
Copy link
Author

🔥🔥🔥
Excited to check it out!

@alexpersian
Copy link
Author

Great stuff. Instant response now. 0 CPU usage while idle. 💯

image

Screen.Recording.2024-04-18.at.7.11.37.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants