Change order of commentsEnabled in parse results

This commit is contained in:
syeopite 2023-09-17 13:20:15 -07:00
parent f1785170f0
commit c6e14e51bc
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A

View File

@ -453,6 +453,7 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any
"isFamilyFriendly" => JSON::Any.new(family_friendly || false),
"isListed" => JSON::Any.new(is_listed || false),
"isUpcoming" => JSON::Any.new(is_upcoming || false),
"commentsEnabled" => JSON::Any.new(comments_enabled),
"keywords" => JSON::Any.new(keywords.map { |v| JSON::Any.new(v) }),
"isPostLiveDvr" => JSON::Any.new(post_live_dvr),
# Related videos
@ -473,8 +474,6 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any
"authorThumbnail" => JSON::Any.new(author_thumbnail.try &.as_s || ""),
"authorVerified" => JSON::Any.new(author_verified || false),
"subCountText" => JSON::Any.new(subs_text || "-"),
"commentsEnabled" => JSON::Any.new(comments_enabled),
}
return params