Skip to content

Commit 6a56ea3

Browse files
authored
Merge pull request #18 from koying/fixlocal
FIX: playback from HA
2 parents 09fbbcf + 56f099e commit 6a56ea3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/mopidy/media_player.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
PLATFORM_SCHEMA,
1414
BrowseMedia,
1515
MediaPlayerEntity,
16+
async_process_play_media_url,
1617
)
1718
from homeassistant.components.media_player.const import (
1819
MEDIA_CLASS_ALBUM,
@@ -650,7 +651,7 @@ def play_media(self, media_type, media_id, **kwargs):
650651
media_source.async_resolve_media(self.hass, media_id), self.hass.loop
651652
).result()
652653
media_type = sourced_media.mime_type
653-
media_id = sourced_media.url
654+
media_id = async_process_play_media_url(self.hass, sourced_media.url)
654655
media_uris = [media_id]
655656
elif spotify.is_spotify_media_type(media_type):
656657
media_type = spotify.resolve_spotify_media_type(media_type)

0 commit comments

Comments
 (0)