mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-08 21:52:28 +05:30
Add field for whether or not chapter is auto gen
This commit is contained in:
parent
65d9914329
commit
5732a2a394
@ -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 New Issue
Block a user