Skip to content

Commit

Permalink
✨ Add metadataFilled property to the companion api
Browse files Browse the repository at this point in the history
  • Loading branch information
NovusTheory committed Oct 26, 2024
1 parent d4f0e00 commit 996616c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/integrations/companion-server/api/v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ const transformPlayerState = (state: PlayerState) => {
durationSeconds: state.videoDetails.durationSeconds,
id: state.videoDetails.id,
isLive: state.videoDetails.isLive,
videoType: state.videoDetails.videoType
videoType: state.videoDetails.videoType,
// API Users: In YTM the initial player response for a song may not contain filled out metadata is fetched via another requests. This indicates that is complete.
// For context you can refer to YTM playing a song but the player bar not displaying the information for the song yet. This is that behavior.
metadataFilled: state.hasFullMetadata
}
: null,
// API Users:
Expand Down

0 comments on commit 996616c

Please sign in to comment.