Make Track Service return "music tracks" only
Currently playlog entries are either holding
- Single music tracks
- Complete shows, optionally also holding tracks
In order to properly implement the Track Service feature, we need some way to identify "music only" playlogs.
Proposal
Single music tracks, which are scheduled as individual media source, as part of a music pool or are playing as part of the fallback music feature, can be identified by having any of the artist, album or title fields set. Since metadata is not always complete, we want to introduce some additionally flag field is_music_track
.
Shows may provide music track information in any supplied JSON metadata.
Sub Tasks
-
Add is_music_track
property in the payload of Engine APIPOST
endpoints. -
Extend Engine API /trackservice
and/trackservice/current
endpoints, to filter only playlogs which matchis_music_track == true
-
Engine Core: Always pass is_music_track=true
in the payload of fallback music/music pools -
Engine: Always pass is_music_track=true
if they are single music tracks. For the start we can use a quick hack, by checking for artist/album/title data in the metadata fields. The exact logic is tbd. Later on we want to have truth about the is music state from actual data provided by AURA Web. When it is an actual show, passis_music_track=false
. -
Add relevant test cases