-
Notifications
You must be signed in to change notification settings - Fork 79
Spotify AppleScript API inconsistently reports track title #1319
Comments
I have the same problem, it happens inconsistently and it also happens with artist name. I can verify its happening with spotify version 1.1.31.703.g256add22.
|
Update to my comment two days ago, it also happens while playing without spotify connect. And now sometimes at the start of the song it gives both the artist and track name, but after a while (it's inconsistent) it stops reporting both. |
+1, any update on this @spotify? |
Also facing this issue! |
It's weird because it seems that it still works correctly for the album name, but not the track or artist name. osascript -e "tell application \"Spotify\" to get album of current track" |
Thanks for flagging this issue, folks. We're looking into it further here. You can follow this forum thread for updates: https://community.spotify.com/t5/Spotify-for-Developers/Apple-OSA-script-not-returning-playback-information-for-new/td-p/4940507 |
I know this repo isn't quite the right place for this bug report as it isn't directly about the Web API, but I emailed [email protected] and they directed me here.
The "current track" entity exposed via AppleScript/Scripting Bridge in the Spotify Mac desktop app seems to sometimes return an empty string for title/artist of the currently playing track. It does work sometimes. I'm not 100% sure, but I think the issue may be related to Spotify Connect as I have only just started noticing the issue as I've been recently listening through a Sonos speaker.
I originally noticed this because of a third party application that emits macOS notifications when the track changes, but after debugging a bit and reading the code of that app, it seems to just use the AppleScript bridge and I can verify that the following fails similarly (track title missing, but track ID is present):
The issue on that project where this is being discussed is citruspi/Spotify-Notifications#112
Steps to reproduce:
Run
osascript -e "tell application \"Spotify\" to get name of current track"
on a Mac where the Spotify desktop app is running.Expected behaviour:
Returns title of currently playing track
Actual behaviour:
Returns empty string (intermittently)
The text was updated successfully, but these errors were encountered: