From 963aae78d8ec70feef8d373419abe87f5569f00a Mon Sep 17 00:00:00 2001 From: 1hitsong <3330318+1hitsong@users.noreply.github.com> Date: Sat, 21 May 2022 11:45:38 -0400 Subject: [PATCH] Add Now Playing scene --- components/ItemGrid/LoadItemsTask2.brs | 2 +- components/music/MusicAlbumDetails.xml | 2 +- components/music/NowPlaying.brs | 101 +++++++++++++++++++++++++ components/music/NowPlaying.xml | 30 ++++++++ source/ShowScenes.brs | 27 ++++--- source/api/Items.brs | 2 +- 6 files changed, 152 insertions(+), 12 deletions(-) create mode 100644 components/music/NowPlaying.brs create mode 100644 components/music/NowPlaying.xml diff --git a/components/ItemGrid/LoadItemsTask2.brs b/components/ItemGrid/LoadItemsTask2.brs index 1dab4f06..1cfdaef0 100644 --- a/components/ItemGrid/LoadItemsTask2.brs +++ b/components/ItemGrid/LoadItemsTask2.brs @@ -53,7 +53,7 @@ sub loadItems() url = Substitute("Users/{0}/Items/", get_setting("active_user")) end if resp = APIRequest(url, params) - data = getJson(resp) + data = getJson(resp) if data <> invalid diff --git a/components/music/MusicAlbumDetails.xml b/components/music/MusicAlbumDetails.xml index 0634f4c8..7e4dc35a 100644 --- a/components/music/MusicAlbumDetails.xml +++ b/components/music/MusicAlbumDetails.xml @@ -9,7 +9,7 @@