mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-13 10:09:30 -04:00
Video: try using the TvHtml5ScreenEmbed client type to get videos.
This commit is contained in:
parent
1ae14cc224
commit
509ca19ca5
1 changed files with 2 additions and 10 deletions
|
@ -103,16 +103,8 @@ def extract_video_info(video_id : String)
|
|||
new_player_response = nil
|
||||
|
||||
if reason.nil?
|
||||
# Fetch the video streams using an Android client in order to get the
|
||||
# decrypted URLs and maybe fix throttling issues (#2194). See the
|
||||
# following issue for an explanation about decrypted URLs:
|
||||
# https://github.com/TeamNewPipe/NewPipeExtractor/issues/562
|
||||
client_config.client_type = YoutubeAPI::ClientType::AndroidTestSuite
|
||||
new_player_response = try_fetch_streaming_data(video_id, client_config)
|
||||
end
|
||||
|
||||
# Last hope
|
||||
if new_player_response.nil?
|
||||
# Fetch the video streams using an TV client in order to get the
|
||||
# decrypted URLs and try fixing 4734.
|
||||
client_config.client_type = YoutubeAPI::ClientType::TvHtml5ScreenEmbed
|
||||
new_player_response = try_fetch_streaming_data(video_id, client_config)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue