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

Add Apple Music support #42

Open
goldyfruit opened this issue Feb 18, 2022 · 1 comment
Open

Add Apple Music support #42

goldyfruit opened this issue Feb 18, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@goldyfruit
Copy link
Contributor

Since PR SoCo/SoCo#900 has been merged, service authentication should be easier.

@goldyfruit goldyfruit added the enhancement New feature or request label Feb 18, 2022
@goldyfruit goldyfruit self-assigned this Feb 18, 2022
goldyfruit added a commit that referenced this issue Feb 18, 2022
@goldyfruit
Copy link
Contributor Author

So Apple Music is not supported due third party authentication mechanism... Nothing is simple... 👎
The "only" to support Apple Music via SoCo library is to use the ShareLink plugin which supports Apple Music.

from soco import SoCo
from soco.plugins.sharelink import ShareLinkPlugin

speaker=SoCo("10.0.2.15")
speaker.clear_queue()

sharelink=ShareLinkPlugin(speaker)
sharelink.add_share_link_to_queue("https://music.apple.com/dk/playlist/60s-hard-rock-essentials/pl.462cd74ff6234e48957aecf14f4927ab")

speaker.play()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant