mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-23 00:29:53 +05:30
Update shorts params
This commit is contained in:
parent
99a5e9cbc4
commit
1a2d408d38
@ -142,8 +142,9 @@ 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.")
|
||||||
# 2AMBCgIQBg is a workaround for streaming URLs that returns a 403.
|
# CgIIAdgDAQ%3D%3D is a workaround for streaming URLs that returns a 403.
|
||||||
response = YoutubeAPI.player(video_id: id, params: "2AMBCgIQBg", client_config: client_config)
|
# https://github.com/LuanRT/YouTube.js/pull/624
|
||||||
|
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…
Reference in New Issue
Block a user