Change order of commentsEnabled in parse results

This commit is contained in:
syeopite 2023-09-17 13:20:15 -07:00
parent 9311724e69
commit 249886ea42
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A
1 changed files with 1 additions and 2 deletions

View File

@ -415,6 +415,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) }),
# Related videos
"relatedVideos" => JSON::Any.new(related),
@ -434,8 +435,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