summaryrefslogtreecommitdiffstats
path: root/assets/js/_helpers.js
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2024-02-12 22:10:16 +0100
committerSamantaz Fox <coding@samantaz.fr>2024-02-12 22:10:16 +0100
commitdcbe52c9fb3225190ad5ce26731a51a4c2414c5c (patch)
treeea1bf64b25d32175b92763a4b0da6f06b35d9452 /assets/js/_helpers.js
parentbd5df3af5f230ee3e62a894f1944932ff799df90 (diff)
parent7da4a7f72b0e328f72aff884605a21c4ffe7cb04 (diff)
downloadinvidious-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 'assets/js/_helpers.js')
0 files changed, 0 insertions, 0 deletions