Change order of commentsEnabled in parse results

This commit is contained in:
syeopite 2023-09-17 13:20:15 -07:00 committed by Fijxu
parent c94d133a28
commit 17eb65e958
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -433,6 +433,7 @@ module Invidious::Videos::Parser
"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
@ -453,7 +454,6 @@ module Invidious::Videos::Parser
"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