mirror of https://github.com/iv-org/invidious.git
Lint
This commit is contained in:
parent
f48aa0a2c2
commit
36ed5d3418
|
@ -436,13 +436,13 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any
|
||||||
"lengthSeconds" => JSON::Any.new(length_txt || 0_i64),
|
"lengthSeconds" => JSON::Any.new(length_txt || 0_i64),
|
||||||
"published" => JSON::Any.new(published.to_rfc3339),
|
"published" => JSON::Any.new(published.to_rfc3339),
|
||||||
# Extra video infos
|
# Extra video infos
|
||||||
"allowedRegions" => JSON::Any.new(allowed_regions.map { |v| JSON::Any.new(v) }),
|
"allowedRegions" => JSON::Any.new(allowed_regions.map { |v| JSON::Any.new(v) }),
|
||||||
"allowRatings" => JSON::Any.new(allow_ratings || false),
|
"allowRatings" => JSON::Any.new(allow_ratings || false),
|
||||||
"isFamilyFriendly" => JSON::Any.new(family_friendly || false),
|
"isFamilyFriendly" => JSON::Any.new(family_friendly || false),
|
||||||
"isListed" => JSON::Any.new(is_listed || false),
|
"isListed" => JSON::Any.new(is_listed || false),
|
||||||
"isUpcoming" => JSON::Any.new(is_upcoming || false),
|
"isUpcoming" => JSON::Any.new(is_upcoming || false),
|
||||||
"keywords" => JSON::Any.new(keywords.map { |v| JSON::Any.new(v) }),
|
"keywords" => JSON::Any.new(keywords.map { |v| JSON::Any.new(v) }),
|
||||||
"isPostLiveDvr" => JSON::Any.new(post_live_dvr),
|
"isPostLiveDvr" => JSON::Any.new(post_live_dvr),
|
||||||
"autoGeneratedChapters" => JSON::Any.new(chapters_auto_generated),
|
"autoGeneratedChapters" => JSON::Any.new(chapters_auto_generated),
|
||||||
"chapters" => JSON::Any.new(chapters_array),
|
"chapters" => JSON::Any.new(chapters_array),
|
||||||
# Related videos
|
# Related videos
|
||||||
|
|
Loading…
Reference in New Issue