Skip to content

Commit

Permalink
update params for fetching stream data (#4156)
Browse files Browse the repository at this point in the history
* update params for fetching stream data

* Remove link about special parameter
  • Loading branch information
unixfox committed Oct 20, 2023
1 parent 069e91d commit 0e4d3d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/invidious/videos/parser.cr
Expand Up @@ -137,9 +137,8 @@ end

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.")
# CgIQBg is a workaround for streaming URLs that returns a 403.
# See https://github.com/iv-org/invidious/issues/4027#issuecomment-1666944520
response = YoutubeAPI.player(video_id: id, params: "CgIQBg", client_config: client_config)
# 2AMBCgIQBg is a workaround for streaming URLs that returns a 403.
response = YoutubeAPI.player(video_id: id, params: "2AMBCgIQBg", client_config: client_config)

playability_status = response["playabilityStatus"]["status"]
LOGGER.debug("try_fetch_streaming_data: [#{id}] Got playabilityStatus == #{playability_status}.")
Expand Down

0 comments on commit 0e4d3d8

Please sign in to comment.