mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-20 15:45:46 -04:00
Add field for whether or not chapter is auto gen
This commit is contained in:
parent
ccab5c2682
commit
3ab6688237
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user