mirror of
https://github.com/iv-org/invidious.git
synced 2025-01-09 19:10:34 +05:30
Change order of commentsEnabled in parse results
This commit is contained in:
parent
f1785170f0
commit
c6e14e51bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user