From 873d8597a46d339acccc03106e19215205dac92d Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 30 Apr 2024 16:10:50 -0400 Subject: [PATCH 1/2] Fix undefined now playing item --- src/components/nowPlayingBar/nowPlayingBar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/nowPlayingBar/nowPlayingBar.js b/src/components/nowPlayingBar/nowPlayingBar.js index 4d7d77a45e..52d69b31c6 100644 --- a/src/components/nowPlayingBar/nowPlayingBar.js +++ b/src/components/nowPlayingBar/nowPlayingBar.js @@ -628,7 +628,7 @@ function onPlaybackStart(e, state) { console.debug('nowplaying event: ' + e.type); const player = this; - isAudio = state.NowPlayingItem.Type === 'Audio'; + isAudio = state.NowPlayingItem?.Type === 'Audio'; onStateChanged.call(player, e, state); } From a18deacbb6110813b1bbf32148c36dd53aec7c08 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 30 Apr 2024 16:32:43 -0400 Subject: [PATCH 2/2] Fix incorrect playbackstop event parameters --- src/elements/emby-itemscontainer/ItemsContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elements/emby-itemscontainer/ItemsContainer.tsx b/src/elements/emby-itemscontainer/ItemsContainer.tsx index 779e718271..44dc0c35d6 100644 --- a/src/elements/emby-itemscontainer/ItemsContainer.tsx +++ b/src/elements/emby-itemscontainer/ItemsContainer.tsx @@ -253,7 +253,7 @@ const ItemsContainer: FC = ({ ); const onPlaybackStopped = useCallback( - (_e: Event, apiClient, stopInfo) => { + (_e: Event, stopInfo) => { const state = stopInfo.state; if (