Compare commits

..

No commits in common. "08390acd0c17875fddb84cabba54197a5b5740e4" and "99a5e9cbc44daa4555f36b43bc4b7246aee454c9" have entirely different histories.

View File

@ -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}.")