Add field for whether or not chapter is auto gen

This commit is contained in:
syeopite 2023-08-21 22:57:20 -07:00
parent 65d9914329
commit 5732a2a394
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A

View File

@ -437,6 +437,7 @@ module Invidious::Routes::API::V1::Videos
response = JSON.build do |json|
json.object do
json.field "chapters" do
json.field "autoGenerated", video.automatically_generated_chapters?
json.array do
chapters.each do |chapter|
json.object do