mirror of
https://github.com/iv-org/invidious.git
synced 2025-09-15 00:08:30 +00:00
Update src/invidious/videos/parser.cr
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
This commit is contained in:
parent
7b246b576f
commit
aead38124d
@ -104,7 +104,7 @@ def extract_video_info(video_id : String)
|
|||||||
next_response = YoutubeAPI.next({"videoId": video_id, "params": ""})
|
next_response = YoutubeAPI.next({"videoId": video_id, "params": ""})
|
||||||
# Remove the microformat returned by the /next endpoint on some videos
|
# Remove the microformat returned by the /next endpoint on some videos
|
||||||
# to prevent player_response microformat from being overwritten.
|
# to prevent player_response microformat from being overwritten.
|
||||||
next_response.reject!("microformat")
|
next_response.delete("microformat")
|
||||||
player_response = player_response.merge(next_response)
|
player_response = player_response.merge(next_response)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user