diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..4cfc3dd2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "*.ts": "xml" + } +} \ No newline at end of file diff --git a/components/ItemGrid/ItemGrid.brs b/components/ItemGrid/ItemGrid.brs index 5934cddd..4aaf1fd6 100644 --- a/components/ItemGrid/ItemGrid.brs +++ b/components/ItemGrid/ItemGrid.brs @@ -94,19 +94,21 @@ sub loadInitialItems() else m.sortAscending = false end if - 'Set Stuido Id + ' Set Studio Id if m.top.parentItem.json.type = "Studio" - m.loadItemsTask.studioIds = m.top.parentItem.Id + m.loadItemsTask.studioIds = m.top.parentItem.id m.loadItemsTask.itemId = m.top.parentItem.parentFolder m.loadItemsTask.genreIds = "" - 'set Genre Id + ' Set Genre Id else if m.top.parentItem.json.type = "Genre" - m.loadItemsTask.genreIds = m.top.parentItem.Id + m.loadItemsTask.genreIds = m.top.parentItem.id m.loadItemsTask.itemId = m.top.parentItem.parentFolder m.loadItemsTask.studioIds = "" else if (m.view = "Shows" or m.options.view = "Shows") or (m.view = "Movies" or m.options.view = "Movies") m.loadItemsTask.studioIds = "" m.loadItemsTask.genreIds = "" + else + m.loadItemsTask.itemId = m.top.parentItem.Id end if updateTitle() @@ -116,7 +118,7 @@ sub loadInitialItems() m.loadItemsTask.sortAscending = m.sortAscending m.loadItemsTask.filter = m.filter m.loadItemsTask.startIndex = 0 - 'Load Item Types + ' Load Item Types if m.top.parentItem.collectionType = "movies" m.loadItemsTask.itemType = "Movie" m.loadItemsTask.itemId = m.top.parentItem.Id @@ -143,19 +145,15 @@ sub loadInitialItems() else if m.top.parentItem.collectionType = "livetv" m.loadItemsTask.itemType = "LiveTV" - 'For LiveTV, we want to "Fit" the item images, not zoom + ' For LiveTV, we want to "Fit" the item images, not zoom m.top.imageDisplayMode = "scaleToFit" if get_user_setting("display.livetv.landing") = "guide" and m.options.view <> "livetv" showTvGuide() end if - - else if m.top.parentItem.collectionType = "CollectionFolder" or m.top.parentItem.type = "CollectionFolder" or m.top.parentItem.collectionType = "boxsets" or m.top.parentItem.Type = "Boxset" or m.top.parentItem.Type = "Folder" or m.top.parentItem.Type = "Channel" - ' Non-recursive, to not show subfolder contents m.loadItemsTask.recursive = false - m.loadItemsTask.itemId = m.top.parentItem.parentFolder else if m.top.parentItem.Type = "Channel" m.top.imageDisplayMode = "scaleToFit" else if m.top.parentItem.json.type = "Studio" @@ -168,7 +166,7 @@ sub loadInitialItems() else print "[ItemGrid] Unknown Type: " m.top.parentItem end if - 'end if + if m.top.parentItem.type <> "Folder" and (m.options.view = "Networks" or m.view = "Networks" or m.options.view = "Studios" or m.view = "Studios") m.loadItemsTask.view = "Networks" m.top.imageDisplayMode = "scaleToFit" diff --git a/components/ItemGrid/ItemGrid.xml b/components/ItemGrid/ItemGrid.xml index 99a2dd19..40a620a6 100644 --- a/components/ItemGrid/ItemGrid.xml +++ b/components/ItemGrid/ItemGrid.xml @@ -3,13 +3,13 @@ invalid @@ -45,7 +45,7 @@ sub setData() else if datum.ParentBackdropImageTags <> invalid m.top.widePosterUrl = ImageURL(datum.ParentBackdropItemId, "Backdrop", imgParams) else if datum.ImageTags.Primary <> invalid - m.top.posterUrl = ImageURL(datum.SeriesId, "Primary", imgParams) + m.top.widePosterUrl = ImageURL(datum.id, "Primary", imgParams) end if else if datum.type = "Series" @@ -82,7 +82,7 @@ sub setData() if datum.ImageTags <> invalid and datum.imageTags.Thumb <> invalid m.top.thumbnailUrl = ImageURL(datum.Id, "Thumb", imgParams) - else if datum.BackdropImageTags <> invalid and datum.BackdropImageTags[0] <> invalid + else if datum.BackdropImageTags[0] <> invalid m.top.thumbnailUrl = ImageURL(datum.id, "Backdrop", imgParams) end if @@ -106,7 +106,7 @@ sub setData() else if datum.BackdropImageTags[0] <> invalid m.top.thumbnailUrl = ImageURL(datum.id, "Backdrop", imgParams) end if - else if datum.type = "MusicAlbum" or datum.type = "Audio" or datum.type = "Book" + else if datum.type = "MusicAlbum" params = { "maxHeight": 261, "maxWidth": 261 } m.top.thumbnailURL = ImageURL(datum.id, "Primary", params) m.top.widePosterUrl = m.top.thumbnailURL diff --git a/components/data/HomeData.xml b/components/data/HomeData.xml index 94787d8e..221ed9ff 100644 --- a/components/data/HomeData.xml +++ b/components/data/HomeData.xml @@ -12,8 +12,6 @@ - -