diff --git a/src/services/hass-service.ts b/src/services/hass-service.ts index 688118e8..1bf820af 100644 --- a/src/services/hass-service.ts +++ b/src/services/hass-service.ts @@ -36,12 +36,17 @@ export default class HassService { } async browseMedia(mediaPlayer: MediaPlayer, media_content_type?: string, media_content_id?: string) { - return await this.hass.callWS({ + const mediaPlayerItem = await this.hass.callWS({ type: 'media_player/browse_media', entity_id: mediaPlayer.id, media_content_id, media_content_type, }); + mediaPlayerItem.children = mediaPlayerItem.children?.map((child) => ({ + ...child, + thumbnail: child.thumbnail?.replace('http://', 'https://'), + })); + return mediaPlayerItem; } async getRelatedEntities(player: MediaPlayer) {