mirror of
https://github.com/iv-org/invidious.git
synced 2025-02-24 16:28:22 -06:00
Compare commits
No commits in common. "08390acd0c17875fddb84cabba54197a5b5740e4" and "99a5e9cbc44daa4555f36b43bc4b7246aee454c9" have entirely different histories.
08390acd0c
...
99a5e9cbc4
@ -142,9 +142,8 @@ end
|
|||||||
|
|
||||||
def try_fetch_streaming_data(id : String, client_config : YoutubeAPI::ClientConfig) : Hash(String, JSON::Any)?
|
def try_fetch_streaming_data(id : String, client_config : YoutubeAPI::ClientConfig) : Hash(String, JSON::Any)?
|
||||||
LOGGER.debug("try_fetch_streaming_data: [#{id}] Using #{client_config.client_type} client.")
|
LOGGER.debug("try_fetch_streaming_data: [#{id}] Using #{client_config.client_type} client.")
|
||||||
# CgIIAdgDAQ%3D%3D is a workaround for streaming URLs that returns a 403.
|
# 2AMBCgIQBg is a workaround for streaming URLs that returns a 403.
|
||||||
# https://github.com/LuanRT/YouTube.js/pull/624
|
response = YoutubeAPI.player(video_id: id, params: "2AMBCgIQBg", client_config: client_config)
|
||||||
response = YoutubeAPI.player(video_id: id, params: "CgIIAdgDAQ%3D%3D", client_config: client_config)
|
|
||||||
|
|
||||||
playability_status = response["playabilityStatus"]["status"]
|
playability_status = response["playabilityStatus"]["status"]
|
||||||
LOGGER.debug("try_fetch_streaming_data: [#{id}] Got playabilityStatus == #{playability_status}.")
|
LOGGER.debug("try_fetch_streaming_data: [#{id}] Got playabilityStatus == #{playability_status}.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user