backends
backends copied to clipboard
Include video durations in estimatedConsumptionMinutes
Bug Report
Steps to Reproduce
{
document(path: "/2019/06/08/das-verlorene-paradies") {
meta {
totalMediaMinutes
estimatedReadingMinutes
estimatedConsumptionMinutes
}
content
}
}
Additional issue: if content
is not requested totalMediaMinutes
is 0
because it's resolved at request time.
Actual Results
{
"data": {
"document": {
"meta": {
"totalMediaMinutes": 19,
"estimatedReadingMinutes": 4,
"estimatedConsumptionMinutes": 4
},
"content": {} // clipped
}
}
Expected Results
{
"data": {
"document": {
"meta": {
"totalMediaMinutes": 19,
"estimatedReadingMinutes": 4,
"estimatedConsumptionMinutes": 23
},
"content": {} // clipped
}
}
Possible Solutions
- preprocess
totalMediaMinutes
at index time - add
totalMediaMinutes
toestimatedConsumptionMinutes
unlessmeta.audioSource.durationMs
is present- this should still win for e.g. «An der Bar» cases where there is a video and audio file of the same thing and same duration