From 9cea33dbc7b13dc7d00f422a6ce7021f43bde474 Mon Sep 17 00:00:00 2001 From: 1hitsong <3330318+1hitsong@users.noreply.github.com> Date: Sat, 2 Dec 2023 08:29:42 -0500 Subject: [PATCH] Removed dead code. Fix Latest in TV Shows posters --- components/home/HomeRows.bs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/components/home/HomeRows.bs b/components/home/HomeRows.bs index d1b3be413..a4f09e454 100644 --- a/components/home/HomeRows.bs +++ b/components/home/HomeRows.bs @@ -266,22 +266,6 @@ sub createLatestInRows() filteredLatest = filterNodeArray(m.libraryData, "id", m.global.session.user.configuration.LatestItemsExcludes) for each lib in filteredLatest if lib.collectionType <> "boxsets" and lib.collectionType <> "livetv" and lib.json.CollectionType <> "Program" - - if not sectionExists(tr("Latest in") + " " + lib.name + " >") - imagesize = homeRowItemSizes.WIDE_POSTER - - if LCase(lib.collectionType) = "movies" - imagesize = homeRowItemSizes.MOVIE_POSTER - else if LCase(lib.collectionType) = "music" - imagesize = homeRowItemSizes.MUSIC_ALBUM - end if - - row = CreateObject("roSGNode", "HomeRow") - row.title = tr("Latest in") + " " + lib.name + " >" - row.imageWidth = imagesize[0] - row.cursorSize = imagesize - end if - loadLatest = createObject("roSGNode", "LoadItemsTask") loadLatest.itemsToLoad = "latest" loadLatest.itemId = lib.id @@ -556,6 +540,7 @@ sub updateLatestItems(msg) row.title = sectionName row.imageWidth = imagesize[0] row.cursorSize = imagesize + row.usePoster = true for each item in itemData item.usePoster = row.usePoster