Add hasStartSegment to video label

This commit is contained in:
Ajay
2025-01-17 23:30:32 -05:00
parent bba06511ce
commit e2a9976cd0
4 changed files with 64 additions and 31 deletions

View File

@@ -21,6 +21,7 @@ export async function getVideoLabelsByHash(req: Request, res: Response): Promise
const output = Object.entries(segments).map(([videoID, data]) => ({
videoID,
segments: data.segments,
hasStartSegment: data.hasStartSegment
}));
return res.status(output.length === 0 ? 404 : 200).json(output);
}