Skip to content

Commit

Permalink
Improved display of data when casting on chromecast devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxilef authored Jan 8, 2025
1 parent 92ba78a commit ec2d81b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions custom_components/yandex_station/core/yandex_station.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,8 +1004,15 @@ async def sync_play_media(self, player_state: dict):
"media_content_type": source.get("media_content_type", "music"),
"entity_id": source["entity_id"],
"extra": {
"title": f"{self._attr_media_artist} - {self._attr_media_title}",
"thumb": self._attr_media_image_url,
"stream_type": "BUFFERED",
"metadata": {
"metadataType": 3,
"title": f"{self._attr_media_title}",
"artist": f"{self._attr_media_artist}",
"images": [{
"url": self._attr_media_image_url
}]
}
},
}

Expand Down

0 comments on commit ec2d81b

Please sign in to comment.