From b79f165a27b86008fd6d3f2f1d300c77fee3b9c4 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Mon, 17 Feb 2020 15:53:56 -0800 Subject: [PATCH] More fix for poster/background not showing for Live TV watch statistics --- data/interfaces/default/home_stats.html | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/data/interfaces/default/home_stats.html b/data/interfaces/default/home_stats.html index 6f52a16e..ea8e07a9 100644 --- a/data/interfaces/default/home_stats.html +++ b/data/interfaces/default/home_stats.html @@ -222,18 +222,9 @@ DOCUMENTATION :: END } } $('#stats-thumb-url-' + stat_id).attr('href', href).prop('title', $(elem).data('title')); - if (art) { - $('#stats-background-' + stat_id).css('background-image', 'url(pms_image_proxy?img=' + art + '&rating_key=' + rating_key + '&width=500&height=280&opacity=40&background=282828&blur=3&fallback=' + fallback_art + ')'); - } else { - $('#stats-background-' + stat_id).css('background-image', 'url(images/' + fallback_art + '.png)'); - } - if (thumb) { - $('#stats-thumb-' + stat_id).css('background-image', 'url(pms_image_proxy?img=' + thumb + '&rating_key=' + rating_key + '&width=300&height=' + height + '&fallback=' + fallback_poster + ')'); - $('#stats-thumb-' + stat_id + '-bg').css('background-image', 'url(pms_image_proxy?img=' + thumb + '&rating_key=' + rating_key + '&width=300&height=' + height + '&opacity=60&background=282828&blur=3&fallback=' + fallback_poster + ')'); - } else { - $('#stats-thumb-' + stat_id).css('background-image', 'url(images/' + fallback_poster + '.png)'); - $('#stats-thumb-' + stat_id + '-bg').css('background-image', 'url(images/' + fallback_poster + '.png)'); - } + $('#stats-background-' + stat_id).css('background-image', 'url(pms_image_proxy?img=' + art + '&rating_key=' + rating_key + '&width=500&height=280&opacity=40&background=282828&blur=3&fallback=' + fallback_art + ')'); + $('#stats-thumb-' + stat_id).css('background-image', 'url(pms_image_proxy?img=' + thumb + '&rating_key=' + rating_key + '&width=300&height=' + height + '&fallback=' + fallback_poster + ')'); + $('#stats-thumb-' + stat_id + '-bg').css('background-image', 'url(pms_image_proxy?img=' + thumb + '&rating_key=' + rating_key + '&width=300&height=' + height + '&opacity=60&background=282828&blur=3&fallback=' + fallback_poster + ')'); } }