Append "Seconds" to startTime/endTime JSON fields

This commit is contained in:
Samantaz Fox 2024-01-14 22:39:16 +00:00 committed by GitHub
parent 7da4a7f72b
commit 060701951c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -397,8 +397,8 @@ module Invidious::Routes::API::V1::Videos
return JSON.build do |json|
json.object do
json.field "startTime", start_time
json.field "endTime", end_time
json.field "startTimeSeconds", start_time
json.field "endTimeSeconds", end_time
json.field "clipTitle", clip_title
json.field "video" do
Invidious::JSONify::APIv1.video(video, json, locale: locale, proxy: proxy)