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

Apple Music "Current Track" doesn't work with streaming #221

Closed
MikeSuiter opened this issue Feb 5, 2021 · 14 comments
Closed

Apple Music "Current Track" doesn't work with streaming #221

MikeSuiter opened this issue Feb 5, 2021 · 14 comments
Labels
help wanted Extra attention is needed wontfix This will not be worked on

Comments

@MikeSuiter
Copy link

MikeSuiter commented Feb 5, 2021

I've installed the Apple Music scripts on 2 2019 MacBook Pro's 15" with Big Sur 11.2, and don't know if these are issues or just the way they work.

  1. When music is playing, "Current Track" just shows a Refreshed! snackbar and that's it. Is the snackbar supposed to show what is currently playing?
  2. If I do a "Stop" and then a "Play" nothing happens. Maybe "Play" only works after a "Pause"?

UPDATE

After some debugging with @unnamedd we found the problem with # 1 above is it only works with local songs. If you stream a song you get "Not playing". What happens is these two lines throw an error:

		set currentTrackName to name of the current track
		set currentTrackArtist to artist of the current track

Labels
help wanted

@crstauf
Copy link
Contributor

crstauf commented Feb 5, 2021

  1. If I do a "Stop" and then a "Play" nothing happens. Maybe "Play" only works after a "Pause"?

That's correct.

@unnamedd
Copy link
Collaborator

unnamedd commented Feb 6, 2021

@MikeSuiter as @crstauf already answered you, I guess we can close this issue. If you need anything else regarding this subject, feel free to reopen the issue or join us in our community: https://raycast.com/community, will be a pleasure to have you there.

@unnamedd unnamedd closed this as completed Feb 6, 2021
@MikeSuiter
Copy link
Author

MikeSuiter commented Feb 6, 2021

@unnamedd What about item 1 above which hasn't been addressed? Looking at the script it's collecting the name and artist but all that happens is a refreshed snackbar.

@unnamedd
Copy link
Collaborator

unnamedd commented Feb 6, 2021

@MikeSuiter here it's working well, check it out:
image
Reading the code, it update the dashboard each 10 seconds, then as soon you play a song or change it, it may take 10 seconds until refresh to present the current playing track.

@MikeSuiter
Copy link
Author

@unnamedd Interesting just tried it on my wife's MBA M1 and it works fine. On my home MBP and work MBP it's not working even though play, pause, next, etc. are working from those scripts. Other than Music is there another permission current track needs?

@unnamedd
Copy link
Collaborator

unnamedd commented Feb 6, 2021

I'm also using an M1 here. For sure, might be some permission missing.
CleanShot 2021-02-06 at 13 52 32

I was checking my permissions and I unchecked the Music and it still here, working okay. Check in your configurations if you have gave permissions to Raycast to access your system across groups like Accessibility and Full Access Disk. It may be related to this.

PS: Do your work MBP has any kind of special compliance configuration? Some companies doesn't allow some configurations in their computers.

@unnamedd unnamedd reopened this Feb 6, 2021
@MikeSuiter
Copy link
Author

Raycast has Full Disk Access and Accessibility access on my home MBP which doesn't have any company restrictions.

Screen Shot 2021-02-06 at 7 20 46 AM

@unnamedd
Copy link
Collaborator

unnamedd commented Feb 6, 2021

@MikeSuiter, what happen if you run the script using the terminal?

Here is my result:

$ cd script-commands/_enabled-commands/apple-music
$ osascript apple-music-current-track.applescript
A Tout Le Monde - Megadeth

@MikeSuiter
Copy link
Author

> osascript apple-music-current-track.applescript
Not playing

I don't think it would matter, but my home MBP went from Mojave -> Catalina -> Big Sur and my wife's MBA M1 came with Big Sur. I'm using zsh and an admin on both.

@unnamedd
Copy link
Collaborator

unnamedd commented Feb 6, 2021

@MikeSuiter, are you on our Slack? I guess we will be more productive solving that issue using a chat instead of the issue comments. What do you think?

@MikeSuiter
Copy link
Author

@unnamedd I just joined the Raycast Slack? Should I post this in # bugs there?

@unnamedd
Copy link
Collaborator

unnamedd commented Feb 6, 2021

I don't think this is a Raycast bug, this is related to your machine and me and you will try to solve this problem! ;)

Give some minutes to get back to my computer.

@MikeSuiter MikeSuiter changed the title Apple Music Issues Apple Music "Current Track" doesn't work with streaming Feb 6, 2021
@unnamedd unnamedd added the help wanted Extra attention is needed label Feb 6, 2021
@MikeSuiter
Copy link
Author

@mmerle since you're the author of this script I thought I would tag you. You can probably ignore all the replies here and just look at the UPDATE of the first post.

@stale
Copy link

stale bot commented Mar 9, 2021

This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean. Thanks for your contributions.

@stale stale bot added the wontfix This will not be worked on label Mar 9, 2021
@stale stale bot closed this as completed Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants