@@ -944,7 +944,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
944944 <table>
945945 <tr>
946946 <td class='metaInfoDetails' style='font-size:${ this . fontSize4 } px; line-height:${ this . fontSize4 } px; margin-top:${ this
947- . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this . fontSize4 / 4 } px;'>
947+ . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this . fontSize4 / 4 } px;'>
948948 Directed by
949949 </td>
950950 <td class='metaInfoDetailsData'>
@@ -953,7 +953,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
953953 </tr>
954954 <tr>
955955 <td class='metaInfoDetails' style='font-size:${ this . fontSize4 } px; line-height:${ this . fontSize4 } px; margin-top:${ this
956- . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this . fontSize4 / 4 } px;'>
956+ . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this . fontSize4 / 4 } px;'>
957957 Written by
958958 </td>
959959 <td class='metaInfoDetailsData'>
@@ -962,7 +962,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
962962 </tr>
963963 <tr>
964964 <td class='metaInfoDetails' style='font-size:${ this . fontSize4 } px; line-height:${ this . fontSize4 } px; margin-top:${ this
965- . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this . fontSize4 / 4 } px;'>
965+ . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this . fontSize4 / 4 } px;'>
966966 Studio
967967 </td>
968968 <td class='metaInfoDetailsData'>
@@ -971,7 +971,7 @@ class PlexMeetsHomeAssistant extends HTMLElement {
971971 </tr>
972972 <tr>
973973 <td class='metaInfoDetails' style='font-size:${ this . fontSize4 } px; line-height:${ this . fontSize4 } px; margin-top:${ this
974- . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this . fontSize4 / 4 } px;'>
974+ . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this . fontSize4 / 4 } px;'>
975975 Genre
976976 </td>
977977 <td class='metaInfoDetailsData'>
@@ -1425,24 +1425,28 @@ class PlexMeetsHomeAssistant extends HTMLElement {
14251425 }
14261426
14271427 ( this . getElementsByClassName ( 'metaInfo' ) [ 0 ] as HTMLElement ) . innerHTML = `${ ( mainData . duration !== undefined
1428- ? `<span class='minutesDetail' style='font-size:${ this . fontSize4 } px; line-height:${ this . fontSize4
1429- } px; margin-top:${ this . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this
1430- . fontSize4 / 4 } px; padding:${ this . fontSize4 / 2 } px ${ this . fontSize4 } px;'>${ Math . round (
1428+ ? `<span class='minutesDetail' style='font-size:${ this . fontSize4 } px; line-height:${
1429+ this . fontSize4
1430+ } px; margin-top:${ this . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this
1431+ . fontSize4 / 4 } px; padding:${ this . fontSize4 / 2 } px ${ this . fontSize4 } px;'>${ Math . round (
14311432 parseInt ( escapeHtml ( mainData . duration ) , 10 ) / 60 / 1000
1432- ) } min</span>`
1433+ ) } min</span>`
14331434 : '' ) +
14341435 ( mainData . contentRating !== undefined
1435- ? `<span class='contentRatingDetail' style='font-size:${ this . fontSize4 } px; line-height:${ this . fontSize4
1436- } px; margin-top:${ this . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this
1437- . fontSize4 / 4 } px; padding:${ this . fontSize4 / 2 } px ${ this . fontSize4 } px;'>${ escapeHtml (
1436+ ? `<span class='contentRatingDetail' style='font-size:${ this . fontSize4 } px; line-height:${
1437+ this . fontSize4
1438+ } px; margin-top:${ this . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this
1439+ . fontSize4 / 4 } px; padding:${ this . fontSize4 / 2 } px ${ this . fontSize4 } px;'>${ escapeHtml (
14381440 mainData . contentRating
1439- ) } </span>`
1441+ ) } </span>`
14401442 : '' ) +
14411443 ( mainData . rating !== undefined
1442- ? `<span class='ratingDetail' style='font-size:${ this . fontSize4 } px; line-height:${ this . fontSize4
1443- } px; margin-top:${ this . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this
1444- . fontSize4 / 4 } px; padding:${ this . fontSize4 / 2 } px ${ this . fontSize4 } px;'>${ mainData . rating < 5 ? '🗑' : '⭐'
1445- } ${ Math . round ( parseFloat ( escapeHtml ( mainData . rating ) ) * 10 ) / 10 } </span>`
1444+ ? `<span class='ratingDetail' style='font-size:${ this . fontSize4 } px; line-height:${
1445+ this . fontSize4
1446+ } px; margin-top:${ this . fontSize4 / 4 } px; margin-bottom:${ this . fontSize4 / 4 } px; margin-right:${ this
1447+ . fontSize4 / 4 } px; padding:${ this . fontSize4 / 2 } px ${ this . fontSize4 } px;'>${
1448+ mainData . rating < 5 ? '🗑' : '⭐'
1449+ } ${ Math . round ( parseFloat ( escapeHtml ( mainData . rating ) ) * 10 ) / 10 } </span>`
14461450 : '' ) } <div class='clear'></div>`;
14471451
14481452 const detailDesc = this . getElementsByClassName ( 'detailDesc' ) [ 0 ] as HTMLElement ;
@@ -1582,8 +1586,9 @@ class PlexMeetsHomeAssistant extends HTMLElement {
15821586 fullscreenTrailer . style . visibility = 'visible' ;
15831587 contentbg . classList . add ( 'no-transparency' ) ;
15841588 playingFired = true ;
1585- this . videoElem . style . width = `${ ( this . getElementsByClassName ( 'searchContainer' ) [ 0 ] as HTMLElement ) . offsetWidth
1586- } px`;
1589+ this . videoElem . style . width = `${
1590+ ( this . getElementsByClassName ( 'searchContainer' ) [ 0 ] as HTMLElement ) . offsetWidth
1591+ } px`;
15871592 this . videoElem . style . visibility = 'visible' ;
15881593 this . videoElem . style . top = `${ top } px` ;
15891594 }
@@ -1670,8 +1675,9 @@ class PlexMeetsHomeAssistant extends HTMLElement {
16701675 const seasonContainer = document . createElement ( 'div' ) ;
16711676 seasonContainer . className = 'seasonContainer' ;
16721677 seasonContainer . style . width = `${ CSS_STYLE . width } px` ;
1673- const thumbURL = `${ this . plex . getBasicURL ( ) } /photo/:/transcode?width=${ this . minExpandedWidth } &height=${ this . minExpandedHeight
1674- } &minSize=1&upscale=1&url=${ childData . thumb } &X-Plex-Token=${ this . config . token } `;
1678+ const thumbURL = `${ this . plex . getBasicURL ( ) } /photo/:/transcode?width=${ this . minExpandedWidth } &height=${
1679+ this . minExpandedHeight
1680+ } &minSize=1&upscale=1&url=${ childData . thumb } &X-Plex-Token=${ this . config . token } `;
16751681
16761682 const seasonElem = document . createElement ( 'div' ) ;
16771683 seasonElem . className = 'seasonElem' ;
@@ -2068,11 +2074,13 @@ class PlexMeetsHomeAssistant extends HTMLElement {
20682074 let thumbURL = '' ;
20692075 if ( this . plex ) {
20702076 if ( _ . isEqual ( data . type , 'episode' ) ) {
2071- thumbURL = `${ this . plex . getBasicURL ( ) } /photo/:/transcode?width=${ this . minExpandedWidth } &height=${ this . minExpandedHeight
2072- } &minSize=1&upscale=1&url=${ data . grandparentThumb } &X-Plex-Token=${ this . config . token } `;
2077+ thumbURL = `${ this . plex . getBasicURL ( ) } /photo/:/transcode?width=${ this . minExpandedWidth } &height=${
2078+ this . minExpandedHeight
2079+ } &minSize=1&upscale=1&url=${ data . grandparentThumb } &X-Plex-Token=${ this . config . token } `;
20732080 } else {
2074- thumbURL = `${ this . plex . getBasicURL ( ) } /photo/:/transcode?width=${ this . minExpandedWidth } &height=${ this . minExpandedHeight
2075- } &minSize=1&upscale=1&url=${ data . thumb } &X-Plex-Token=${ this . config . token } `;
2081+ thumbURL = `${ this . plex . getBasicURL ( ) } /photo/:/transcode?width=${ this . minExpandedWidth } &height=${
2082+ this . minExpandedHeight
2083+ } &minSize=1&upscale=1&url=${ data . thumb } &X-Plex-Token=${ this . config . token } `;
20762084 }
20772085 }
20782086
0 commit comments