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 fec6d7e091
commit 874c373499
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A

View File

@ -460,6 +460,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