diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index eca9bac..4706d10 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -20252,6 +20252,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { this.detailElem.children[0].innerHTML = escapeHtml(data.title); this.detailElem.children[1].innerHTML = escapeHtml(data.year); this.detailElem.children[1].dataset.year = escapeHtml(data.year); + console.log(data.rating); this.detailElem.children[2].innerHTML = `${(data.duration !== undefined ? `${Math.round(parseInt(escapeHtml(data.duration), 10) / 60 / 1000)} min` : '') + @@ -20259,7 +20260,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { ? `${escapeHtml(data.contentRating)}` : '') + (data.rating !== undefined - ? ` ` + ? ` ` : '')}
`; this.detailElem.children[3].innerHTML = escapeHtml(data.summary); /* todo temp disabled diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index 1057072..7f03c53 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -616,6 +616,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { this.detailElem.children[0].innerHTML = escapeHtml(data.title); this.detailElem.children[1].innerHTML = escapeHtml(data.year); (this.detailElem.children[1] as HTMLElement).dataset.year = escapeHtml(data.year); + console.log(data.rating); this.detailElem.children[2].innerHTML = `${(data.duration !== undefined ? `${Math.round( parseInt(escapeHtml(data.duration), 10) / 60 / 1000 @@ -625,9 +626,9 @@ class PlexMeetsHomeAssistant extends HTMLElement { ? `${escapeHtml(data.contentRating)}` : '') + (data.rating !== undefined - ? ` ` + ? ` ` : '')}`; this.detailElem.children[3].innerHTML = escapeHtml(data.summary); /* todo temp disabled