Invidious is an alternative front-end to YouTube
Videos: Copy captions over between responses
Samantaz Foxbe291e8f0f21
diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.crindex 373f7227..ca7fb38d 100644--- a/src/invidious/videos/parser.cr+++ b/src/invidious/videos/parser.cr@@ -123,8 +123,9 @@ def extract_video_info(video_id : String, proxy_region : String? = nil)# Replace player response and reset reasonif !new_player_response.nil?- # Preserve storyboard data before replacement+ # Preserve captions & storyboard data before replacementnew_player_response["storyboards"] = player_response["storyboards"] if player_response["storyboards"]?+ new_player_response["captions"] = player_response["captions"] if player_response["captions"]?player_response = new_player_responseparams.delete("reason")