From 4c47ff7463442eb99dcb62a2aa0a161ff42598fa Mon Sep 17 00:00:00 2001 From: syeopite Date: Tue, 19 Sep 2023 13:27:31 -0700 Subject: [PATCH] Move parsed chapters info to "extra video infos" --- src/invidious/videos/parser.cr | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr index 3bd65556..6a42012b 100644 --- a/src/invidious/videos/parser.cr +++ b/src/invidious/videos/parser.cr @@ -470,6 +470,8 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any "isUpcoming" => JSON::Any.new(is_upcoming || false), "keywords" => JSON::Any.new(keywords.map { |v| JSON::Any.new(v) }), "isPostLiveDvr" => JSON::Any.new(post_live_dvr), + "autoGeneratedChapters" => JSON::Any.new(chapters_auto_generated), + "chapters" => JSON::Any.new(chapters_array), # Related videos "relatedVideos" => JSON::Any.new(related), # Description @@ -488,9 +490,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 || "-"), - - "autoGeneratedChapters" => JSON::Any.new(chapters_auto_generated), - "chapters" => JSON::Any.new(chapters_array), } return params