invidious/src/invidious/routes
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
..
api Videos: Use start time and end time for clips (#4264) 2024-02-12 22:10:16 +01:00
account.cr User: Remove broken Google login (password change route) 2023-06-11 16:34:59 +02:00
before_all.cr User: Remove broken Google login (before_all route) 2023-06-11 16:34:59 +02:00
channels.cr Add support for community post page/comments (#4010) 2023-10-07 19:58:54 +02:00
embed.cr Add ability to disable all user notifications (#3473) 2023-01-05 23:08:05 +00:00
errors.cr Update errors.cr 2023-08-10 18:45:10 +00:00
feeds.cr Fix when video from pubsub is a scheduled event 2024-02-08 18:58:23 -05:00
images.cr Remove lsquic from codebase 2023-07-26 07:19:12 -07:00
login.cr User: Remove broken Google login (dedicated captcha route) 2023-06-11 16:34:59 +02:00
misc.cr i18n: pass only the ISO code string to 'translate()' 2021-11-21 01:50:11 +01:00
notifications.cr User: Remove broken Google login (notifications route) 2023-06-11 16:34:59 +02:00
playlists.cr Playlists: Fix pagination of Invidious playlists (#3861) 2023-07-16 18:02:27 +02:00
preferences.cr add: importing watch history from YouTube 2023-10-14 15:49:33 -07:00
search.cr HTML: Use the new pagination component for channel pages 2023-07-06 00:58:30 +02:00
subscriptions.cr User: Remove broken Google login (subscribe route) 2023-06-11 16:34:59 +02:00
video_playback.cr Add parameter to disable `force_resolve` in `make_client` (#4335) 2024-01-10 23:01:00 +00:00
watch.cr add null safety to clip parsing 2023-12-26 22:05:09 -05:00