mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
Move parsed chapters info to "extra video infos"
This commit is contained in:
parent
9535009864
commit
3860c69a52
@ -443,6 +443,8 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any
|
|||||||
"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),
|
||||||
|
"chapters" => JSON::Any.new(chapters_array),
|
||||||
# Related videos
|
# Related videos
|
||||||
"relatedVideos" => JSON::Any.new(related),
|
"relatedVideos" => JSON::Any.new(related),
|
||||||
# Description
|
# Description
|
||||||
@ -461,9 +463,6 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any
|
|||||||
"authorThumbnail" => JSON::Any.new(author_thumbnail.try &.as_s || ""),
|
"authorThumbnail" => JSON::Any.new(author_thumbnail.try &.as_s || ""),
|
||||||
"authorVerified" => JSON::Any.new(author_verified || false),
|
"authorVerified" => JSON::Any.new(author_verified || false),
|
||||||
"subCountText" => JSON::Any.new(subs_text || "-"),
|
"subCountText" => JSON::Any.new(subs_text || "-"),
|
||||||
|
|
||||||
"autoGeneratedChapters" => JSON::Any.new(chapters_auto_generated),
|
|
||||||
"chapters" => JSON::Any.new(chapters_array),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
Loading…
Reference in New Issue
Block a user