diff --git a/components/ItemGrid2/GridItem.brs b/components/ItemGrid2/GridItem.brs index c857f3906..f5bfbac3a 100644 --- a/components/ItemGrid2/GridItem.brs +++ b/components/ItemGrid2/GridItem.brs @@ -15,6 +15,10 @@ sub itemContentChanged() itemPoster.uri = itemData.PosterUrl m.itemText.text = itemData.Title return + else if itemData.type = "Series" then + itemPoster.uri = itemData.PosterUrl + m.itemText.text = itemData.Title + return end if print "Unhandled Item Type: " + itemData.type diff --git a/components/ItemGrid2/ItemGrid2.brs b/components/ItemGrid2/ItemGrid2.brs index cc78bb3fc..25d3cbdc6 100644 --- a/components/ItemGrid2/ItemGrid2.brs +++ b/components/ItemGrid2/ItemGrid2.brs @@ -29,9 +29,16 @@ end sub ' 'Load initial set of Data sub loadInitialItems() - m.loadItemsTask.itemId = m.top.itemId + + m.loadItemsTask.itemId = m.top.parentItem.Id m.loadItemsTask.observeField("content", "ItemDataLoaded") - m.loadItemsTask.itemType = "Movie" + + if m.top.parentItem.collectionType = "movies" then + m.loadItemsTask.itemType = "Movie" + else if m.top.parentItem.collectionType = "tvshows" then + m.loadItemsTask.itemType = "Series" + end if + m.loadItemsTask.control = "RUN" end sub diff --git a/components/ItemGrid2/ItemGrid2.xml b/components/ItemGrid2/ItemGrid2.xml index 9070f7cd5..dc6064400 100644 --- a/components/ItemGrid2/ItemGrid2.xml +++ b/components/ItemGrid2/ItemGrid2.xml @@ -30,7 +30,7 @@ - +