Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion homeassistant/components/plex/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,11 @@ def play_media(self, media_type, media_id, **kwargs):
shuffle = src.get("shuffle", 0)

media = None
command_mediatype = "video"
Comment thread
jjlawren marked this conversation as resolved.
Outdated

if media_type == "MUSIC":
media = self._get_music_media(library, src)
command_mediatype = "music"
elif media_type == "EPISODE":
media = self._get_tv_media(library, src)
elif media_type == "PLAYLIST":
Expand All @@ -591,7 +593,7 @@ def play_media(self, media_type, media_id, **kwargs):

playqueue = self.plex_server.create_playqueue(media, shuffle=shuffle)
try:
self.device.playMedia(playqueue)
self.device.playMedia(playqueue, type=command_mediatype)
except ParseError:
# Temporary workaround for Plexamp / plexapi issue
pass
Expand Down