mirror of https://github.com/iv-org/invidious.git
Properly camelcase auto gen chapters attribute
This commit is contained in:
parent
6f295bb33b
commit
6f62de36d7
|
@ -239,7 +239,7 @@ struct Video
|
||||||
end
|
end
|
||||||
|
|
||||||
def automatically_generated_chapters? : Bool?
|
def automatically_generated_chapters? : Bool?
|
||||||
return @info["AutoGeneratedChapters"]?.try &.as_bool
|
return @info["autoGeneratedChapters"]?.try &.as_bool
|
||||||
end
|
end
|
||||||
|
|
||||||
def hls_manifest_url : String?
|
def hls_manifest_url : String?
|
||||||
|
|
|
@ -462,7 +462,7 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any
|
||||||
"authorVerified" => JSON::Any.new(author_verified || false),
|
"authorVerified" => JSON::Any.new(author_verified || false),
|
||||||
"subCountText" => JSON::Any.new(subs_text || "-"),
|
"subCountText" => JSON::Any.new(subs_text || "-"),
|
||||||
|
|
||||||
"AutoGeneratedChapters" => JSON::Any.new(chapters_auto_generated),
|
"autoGeneratedChapters" => JSON::Any.new(chapters_auto_generated),
|
||||||
"chapters" => JSON::Any.new(chapters_array),
|
"chapters" => JSON::Any.new(chapters_array),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue