Skip to content
Snippets Groups Projects
Commit d0319c03 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: work-around missing entries in playlist objects

Tank only returns an entries property for playlist objects if the
entries list would have at least one item. This is a bug [1].

closes #119

[1] tank#46
parent c98b5fa0
No related branches found
No related tags found
No related merge requests found
Pipeline #2653 passed
......@@ -264,7 +264,7 @@ export default {
const totalDuration = this.playlistDuration(playlist.item)
let delta = 0
const unknowns = playlist.item.entries.filter((entry) => !entry.duration)
const unknowns = (playlist.item.entries ?? []).filter((entry) => !entry.duration)
if (unknowns.length === 1) {
delta = this.timeslotDurationInNs - totalDuration
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment