Skip to content
Merged
Changes from all commits
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
5 changes: 4 additions & 1 deletion homeassistant/components/plex/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
MEDIA_TYPE_MOVIE,
MEDIA_TYPE_MUSIC,
MEDIA_TYPE_TVSHOW,
MEDIA_TYPE_VIDEO,
SUPPORT_NEXT_TRACK,
SUPPORT_PAUSE,
SUPPORT_PLAY,
Expand Down Expand Up @@ -575,9 +576,11 @@ def play_media(self, media_type, media_id, **kwargs):
shuffle = src.get("shuffle", 0)

media = None
command_media_type = MEDIA_TYPE_VIDEO

if media_type == "MUSIC":
media = self._get_music_media(library, src)
command_media_type = MEDIA_TYPE_MUSIC
elif media_type == "EPISODE":
media = self._get_tv_media(library, src)
elif media_type == "PLAYLIST":
Expand All @@ -591,7 +594,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_media_type)
except ParseError:
# Temporary workaround for Plexamp / plexapi issue
pass
Expand Down