Properly camelcase auto gen chapters attribute

This commit is contained in:
syeopite 2023-09-19 13:19:48 -07:00 committed by tezlm
parent 09b5972924
commit 4a8d77c157
Signed by: tezlm
GPG key ID: 649733FCD94AFBBA
2 changed files with 2 additions and 2 deletions

View file

@ -209,7 +209,7 @@ struct Video
end
def automatically_generated_chapters? : Bool?
return @info["AutoGeneratedChapters"]?.try &.as_bool
return @info["autoGeneratedChapters"]?.try &.as_bool
end
def hls_manifest_url : String?

View file

@ -467,7 +467,7 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any
"authorVerified" => JSON::Any.new(author_verified || false),
"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),
}