'Send the media player the command for playing a playlist.'

def play_media(self, media_type, media_id, **kwargs):

    _LOGGER.debug(str.format('Playing    playlist:    {0}', media_id))
    if (media_type == MEDIA_TYPE_PLAYLIST):
        if (media_id in self._playlists):
            self._currentplaylist = media_id
        else:
            self._currentplaylist = None
            _LOGGER.warning(str.format('Unknown    playlist    name    %s.', media_id))
        self._client.clear()
        self._client.load(media_id)
        self._client.play()
    else:
        self._client.clear()
        self._client.add(media_id)
        self._client.play()
