twelvelabs-io / tl-jockey

Jockey is a conversational video agent.
51 stars 13 forks source link

full_urls #76

Closed DmitriiTsy closed 2 months ago

DmitriiTsy commented 2 months ago

Currently, all of our video URLs, and sometimes thumbnails, return truncated URLs. This PR will help us get the full URLs, which we need to use on the frontend.

Screenshot 2024-09-09 at 4 06 32 PM

DmitriiTsy commented 2 months ago

Screenshot 2024-09-09 at 4 08 03 PM

This is how it might looks like now.

DmitriiTsy commented 2 months ago

I did some testing, and these URLs are returning the right values

[{'score': 90.48, 'start': 461.72, 'end': 506.97, 'metadata': [{'type': 'conversation',
'text': " 40, and it's knocked down incomplete trying to hit Renfro making life
miserable for Patrick Mahomes second in six underneath. Got time in the pocket for once
and he's got a man open at the 35 Richie James racing with it inside the 10. So you got
two downs. You don't have to, if there's nothing there in the end zone. Third in goal.
Pressure from behind somehow got away to the end zone. It is caught for the touchdown.
Justin Watson, this should have been a three man rush and you're about to get a sack
right there and he gets out and then fires that ball."}, {'type': 'visual'}, {'type':
'visual'}, {'type': 'visual'}], 'video_id': '659f39841cbcab2e74d8b306', 'confidence':
'high', 'thumbnail_url':
'https://project-one-thumbnail.s3.us-west-2.amazonaws.com/659f39841cbcab2e74d8b306/462.
jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAYRWJPOVHRXELGFWS%2F20240909%
2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240909T231827Z&X-Amz-Expires=604799&X-Amz-
SignedHeaders=host&x-id=GetObject&X-Amz-Signature=cdd474b63979669cef1253994ab91c7ae2550
0ed9ad597cc9e6d6f47d6cd628f', 'modules': [{'type': 'conversation', 'confidence':
'high'}, {'type': 'visual', 'confidence': 'high'}], 'video_url':
'https://deuqpmn4rs7j5.cloudfront.net/64014aa08e079b9c96f4a55c/659f397d9aba4f0b402f64a5
/stream/36897119-0467-42f9-a6e5-dc5244c80082.m3u8', 'video_title': 'Las Vegas Raiders
vs. Kansas City Chiefs Game Highlights | NFL 2023 Week 16'}, {'score': 88.87, 'start':
118.449, 'end': 141.149, 'metadata': [{'type': 'conversation', 'text': " Another quick
hitter Devante Adams again. Snead is there. It's a first in 10. Josh Jacobs. Oh, he's
got the big hole. He's into the secondary. They can't get him. You can kiss him
goodbye. Touchdown, touchdown. Raiders, 63 yards."}, {'type': 'visual'}], 'video_id':
'659f39841cbcab2e74d8b308', 'confidence': 'high', 'thumbnail_url':