invidious/src/invidious/routes/api/v1
Samantaz Fox dcbe52c9fb
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
2024-02-12 22:10:16 +01:00
..
authenticated.cr User: Remove broken Google login (various comments) 2023-06-11 16:34:59 +02:00
channels.cr remove unused variable 2023-09-27 17:36:06 -04:00
feeds.cr i18n: pass only the ISO code string to 'translate()' 2021-11-21 01:50:11 +01:00
misc.cr API: Add playlist and start time to resolve_url 2024-02-12 22:01:08 +01:00
search.cr fix potential memory leak 2023-12-19 23:07:18 -05:00
videos.cr Add API endpoint for Clips 2023-12-07 09:39:04 -05:00