Support launching app deep links in apple_tv integration (#94705)

This commit is contained in:
Michał Modzelewski 2023-06-16 20:05:46 +02:00 committed by GitHub
parent d7755a92c3
commit 3778e1cd77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,7 +282,7 @@ class AppleTvMediaPlayer(AppleTVEntity, MediaPlayerEntity):
"""Send the play_media command to the media player."""
# If input (file) has a file format supported by pyatv, then stream it with
# RAOP. Otherwise try to play it with regular AirPlay.
if media_type == MediaType.APP:
if media_type in {MediaType.APP, MediaType.URL}:
await self.atv.apps.launch_app(media_id)
return