-
- Downloads
fix(program-generation): fix undefined behaviour around start and end query parameters
The radio program is a continuous stream of program slots. Clients can expect that the program generated for their queries fit the start and end parameters given by the client. However, they *cannot* expect the actual radio program (in the form of Timeslot objects) to fit these artifical boundaries. As the program endpoint should always output the actual program broadcasted by the radio we must include timeslots that * have started before the specified start query but end after it * or end after the specified end query but start before it. The changes in this commit ensure that the program matches the given range exactly and that planned timeslots in that range are always included.
parent
3c82c6f6
No related branches found
No related tags found
Please register or sign in to comment