From 32e5582a020f7027b1c0c7f63522ebe504b07dc2 Mon Sep 17 00:00:00 2001 From: 1hitsong <3330318+1hitsong@users.noreply.github.com> Date: Sat, 10 Dec 2022 16:19:14 -0500 Subject: [PATCH 1/6] Add unplayed count to Show Poster --- components/tvshows/TVShowDetails.brs | 2 ++ components/tvshows/TVShowDetails.xml | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/components/tvshows/TVShowDetails.brs b/components/tvshows/TVShowDetails.brs index 0c538671..aaca0b09 100644 --- a/components/tvshows/TVShowDetails.brs +++ b/components/tvshows/TVShowDetails.brs @@ -3,6 +3,7 @@ sub init() main = m.top.findNode("toplevel") main.translation = [96, 175] m.extrasSlider = m.top.findNode("tvSeasonExtras") + m.unplayedEpisodeCount = m.top.findNode("unplayedEpisodeCount") 'm.extrasSlider.translation = [30,1014] m.extrasSlider.visible = true end sub @@ -13,6 +14,7 @@ sub itemContentChanged() item = m.top.itemContent itemData = item.json + m.unplayedEpisodeCount.text = itemData.UserData.UnplayedItemCount m.top.findNode("tvshowPoster").uri = m.top.itemContent.posterURL ' Handle all "As Is" fields diff --git a/components/tvshows/TVShowDetails.xml b/components/tvshows/TVShowDetails.xml index 199210e8..8d3e243c 100644 --- a/components/tvshows/TVShowDetails.xml +++ b/components/tvshows/TVShowDetails.xml @@ -1,9 +1,13 @@ - - - + + + + + +