Skip to content

Commit

Permalink
Removed dead code. Fix Latest in TV Shows posters
Browse files Browse the repository at this point in the history
  • Loading branch information
1hitsong committed Dec 2, 2023
1 parent 95638e5 commit 9cea33d
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions components/home/HomeRows.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9cea33d

Please sign in to comment.