From 13b660c7c2d21fa6a35024e1b3a59520c2e6515b Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 12 Jul 2022 19:15:59 -0400 Subject: [PATCH] Revert "Update Home Screen to Respect User Preferences (#553)" This reverts commit 26d9360fd3982e4395da2c4aef32b2399b4a81e6. --- components/ItemGrid/ItemGrid.xml | 4 +- components/data/HomeData.brs | 8 +- components/data/HomeData.xml | 2 - components/home/Home.brs | 2 +- components/home/HomeItem.brs | 83 +-- components/home/HomeItem.xml | 8 +- components/home/HomeRow.xml | 3 +- components/home/HomeRows.brs | 985 +++++++----------------------- components/home/HomeRows.xml | 1 - components/home/LoadItemsTask.brs | 97 +-- components/home/LoadItemsTask.xml | 1 - source/Main.brs | 2 +- source/api/Image.brs | 8 +- source/api/userauth.brs | 47 +- 14 files changed, 297 insertions(+), 954 deletions(-) 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 @@ - -