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

Is it possible to play a specific item from iTunes Store or Apple Music? #2596

Open
herrernst opened this issue Jan 4, 2025 · 3 comments
Open
Labels

Comments

@herrernst
Copy link

What do you need help with?

Hi,
when playing something from Apple Music on Apple TV, atvremote itunes_store_identifier prints the iTunes Store Identifier of a currently playing item. But is it possible to also change it, i. e. play a specific item by setting iTunes Store Identifier? Thanks

@thiccaxe
Copy link
Contributor

thiccaxe commented Jan 4, 2025

I believe you will have to first resolve what service it is on, e.g. music, apple tv (podcasts?). Then, you need to use open_url. See here for examples. https://community.home-assistant.io/t/appletv-integration-deep-link-urls-which-are-working/592862. #1545

@herrernst
Copy link
Author

Thank you for your answer. But atvremote has no open_url, am I missing something?

atvremote open_url=https://tv.apple.com/us/movie/spirited/umc.cmc.3lp7wqowerzdbej98tveildi3
2025-01-07 21:02:00 ERROR [pyatv.scripts.atvremote]: Unknown command: open_url

@herrernst
Copy link
Author

Oh, but now I see one can use launch_app, e. g.:

atvremote launch_app=https://music.apple.com/album/the-soft-bulletin/1247942375

In this case it opens Apple Music with the specified album, but it's still necessary to "load" it by sending atvremote select afterwards (which presses the "Play" button on screen).

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

No branches or pull requests

2 participants