From 6643b9ea7e0407f28f74c973894fc7a44540a6a2 Mon Sep 17 00:00:00 2001 From: Prayag Prajapati Date: Sun, 8 Oct 2023 21:27:38 +0530 Subject: [PATCH] Fix playbutton --- src/components/buttons/playButton.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/buttons/playButton.jsx b/src/components/buttons/playButton.jsx index 2ade3d6..34ced1e 100644 --- a/src/components/buttons/playButton.jsx +++ b/src/components/buttons/playButton.jsx @@ -118,10 +118,10 @@ const PlayButton = ({ limit: 1, startIndex: 0, fields: [ - "UserData", ItemFields.MediaSources, ItemFields.MediaStreams, ], + enableUserData: true, }); break; case BaseItemKind.Playlist: @@ -179,7 +179,7 @@ const PlayButton = ({ return result.data; }, onSuccess: (item) => { - console.log(item); + console.log(item.Items[0].MediaSources); if (trackIndex) { setPlaylistItemId(playlistItemId); setCurrentTrack(trackIndex);