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 ccab5c2682
commit 3ab6688237
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A

View File

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