mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-30 09:18:28 +00:00
Video: try using the TvHtml5ScreenEmbed client type to get videos.
This commit is contained in:
parent
1ae14cc224
commit
509ca19ca5
@ -103,16 +103,8 @@ def extract_video_info(video_id : String)
|
|||||||
new_player_response = nil
|
new_player_response = nil
|
||||||
|
|
||||||
if reason.nil?
|
if reason.nil?
|
||||||
# Fetch the video streams using an Android client in order to get the
|
# Fetch the video streams using an TV client in order to get the
|
||||||
# decrypted URLs and maybe fix throttling issues (#2194). See the
|
# decrypted URLs and try fixing 4734.
|
||||||
# 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?
|
|
||||||
client_config.client_type = YoutubeAPI::ClientType::TvHtml5ScreenEmbed
|
client_config.client_type = YoutubeAPI::ClientType::TvHtml5ScreenEmbed
|
||||||
new_player_response = try_fetch_streaming_data(video_id, client_config)
|
new_player_response = try_fetch_streaming_data(video_id, client_config)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user