Send video duration if known

This commit is contained in:
Ajay
2023-06-08 15:28:37 -04:00
parent 0932f63398
commit ef3e48ec24
3 changed files with 6 additions and 2 deletions

View File

@@ -189,7 +189,8 @@ async function filterAndSortBranding(videoID: VideoID, dbTitles: TitleDBResult[]
return {
titles,
thumbnails,
randomTime: findRandomTime(videoID, dbSegments)
randomTime: findRandomTime(videoID, dbSegments),
videoDuration: dbSegments[0]?.videoDuration ?? null
};
}