Videos: Copy captions over between responses

This commit is contained in:
Samantaz Fox 2024-04-26 22:33:08 +02:00 committed by Fijxu
parent 7c8c515e29
commit 5cae52da8b
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -123,8 +123,9 @@ def extract_video_info(video_id : String)
# Replace player response and reset reason
if !new_player_response.nil?
# Preserve storyboard data before replacement
# Preserve captions & storyboard data before replacement
new_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_response
params.delete("reason")