From 69b5b3416cf2c3c8a5778c2d642c6f864e863b80 Mon Sep 17 00:00:00 2001 From: brys0 <35676267+brys0@users.noreply.github.com> Date: Tue, 11 Feb 2025 12:39:35 -0600 Subject: [PATCH] fix duplication of genres and criticRating --- slideshowpure.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slideshowpure.js b/slideshowpure.js index 4bde05f..2028767 100644 --- a/slideshowpure.js +++ b/slideshowpure.js @@ -56,13 +56,14 @@ const slidesInit = () => { const itemId = item.Id; const plot = item.Overview || "No overview available"; const rating = item.CommunityRating; - const tomato = item.CriticRating; + const criticRating = item.CriticRating; const runtime = item.RunTimeTicks; - const genre = item.Genres; + const genresArray = item.Genres; const youtube = item.RemoteTrailers; const age = item.OfficialRating; const date = item.PremiereDate; const season = item.ChildCount; + function createSeparator() { const separatorHtml = ''; @@ -209,7 +210,6 @@ const slidesInit = () => { ratingTest.appendChild(createSeparator()); ratingTest.appendChild(runTimeElement); - const genresArray = item.Genres; function parseGenres(genresArray) { if (genresArray && genresArray.length > 0) { return genresArray.slice(0, 3).join(" 🔹 ");