Skip to content

Commit

Permalink
Merge pull request #606 from Laxilef/patch-1
Browse files Browse the repository at this point in the history
Improved display of data when casting on chromecast devices
  • Loading branch information
AlexxIT authored Jan 17, 2025
2 parents 2817f14 + ec2d81b commit 2c06b4b
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 2c06b4b

Please sign in to comment.