diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2024-02-12 22:10:16 +0100 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2024-02-12 22:10:16 +0100 |
| commit | dcbe52c9fb3225190ad5ce26731a51a4c2414c5c (patch) | |
| tree | ea1bf64b25d32175b92763a4b0da6f06b35d9452 /scripts/git | |
| parent | bd5df3af5f230ee3e62a894f1944932ff799df90 (diff) | |
| parent | 7da4a7f72b0e328f72aff884605a21c4ffe7cb04 (diff) | |
| download | invidious-dcbe52c9fb3225190ad5ce26731a51a4c2414c5c.tar.gz invidious-dcbe52c9fb3225190ad5ce26731a51a4c2414c5c.tar.bz2 invidious-dcbe52c9fb3225190ad5ce26731a51a4c2414c5c.zip | |
Videos: Use start time and end time for clips (#4264)
This PR parses the start and end time for clips.
It also adds a new, dedicated API endpoint (`/api/v1/clips/{id}`) for
retrieving the start and end time of a clip.
Here is a sample response from that new endpoint (`video` is a video object,
as described in https://docs.invidious.io/api/common_types/#videoobject):
GET `/api/v1/clips/UgkxxPM3BRphCAPLP88YoUGuj79KXPfpNNO_?pretty=1`
Response:
```
{
"startTime": 8842.645,
"endTime": 8855.856,
"clipTitle": "✂️ Kirby is pink!",
"video": {}
}
```
Closes issue 3921
Diffstat (limited to 'scripts/git')
0 files changed, 0 insertions, 0 deletions
