mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Videos: Copy captions over between responses
This commit is contained in:
parent
d49c762609
commit
be291e8f0f
1 changed files with 2 additions and 1 deletions
|
@ -123,8 +123,9 @@ def extract_video_info(video_id : String, proxy_region : String? = nil)
|
|||
|
||||
# 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")
|
||||
|
|
Loading…
Reference in a new issue