mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Add field for whether or not chapter is auto gen
This commit is contained in:
parent
65d9914329
commit
5732a2a394
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue