Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use workaround for fetching streaming URLs #4037

Merged
merged 1 commit into from Aug 7, 2023

Conversation

syeopite
Copy link
Member

@syeopite syeopite commented Aug 7, 2023

Closes #4027

YouTube appears to be A/B testing some new integrity checks. Adding the parameter "CgIQBg" to InnerTube player requests appears to workaround the problem

See TeamNewPipe/NewPipeExtractor#1084

YouTube appears to be A/B testing some new integrity checks. Adding the
parameter "CgIQBg" to InnerTube player requests appears to workaround
the problem

See TeamNewPipe/NewPipeExtractor#1084
@syeopite syeopite requested a review from a team as a code owner August 7, 2023 19:17
@syeopite syeopite requested review from unixfox and removed request for a team August 7, 2023 19:17
@@ -55,8 +55,9 @@ def extract_video_info(video_id : String, proxy_region : String? = nil)
client_config = YoutubeAPI::ClientConfig.new(proxy_region: proxy_region)

# Fetch data from the player endpoint
# 8AEB param is used to fetch YouTube stories
Copy link
Member Author

@syeopite syeopite Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can safely remove the 8AEB param since stories was entirely removed by YouTube back in late June

@SamantazFox
Copy link
Member

Is there a difference with and without the padding bytes (%3D in base64)?
TeamNewPipe/NewPipe#9038 (comment)

@SamantazFox
Copy link
Member

Nevermind, NP uses the non-padded version, let's use that too.

@SamantazFox SamantazFox merged commit 3450896 into iv-org:master Aug 7, 2023
8 checks passed
@SamantazFox
Copy link
Member

For the record, I did integrate that change into the test instance the other day (before the weekend) and it sure does work. I was planning to make a PR, but thanks for doing it instead ^^

@syeopite syeopite deleted the fix-playback branch August 7, 2023 19:32
syeopite added a commit to syeopite/invidious that referenced this pull request Aug 8, 2023
PR iv-org#4037 introduced a workaround around YouTube's new integrity checks
on streaming URLs. However, the usage of this workaround prevents
storyboard data from being returned by InnerTube.

This commit fixes that by only using the workaround when calling try_fetch_streaming_data
syeopite added a commit to syeopite/invidious that referenced this pull request Sep 19, 2023
PR iv-org#4037 introduced a workaround around YouTube's new integrity checks
on streaming URLs. However, the usage of this workaround prevents
storyboard data from being returned by InnerTube.

This commit fixes that by only using the workaround when calling try_fetch_streaming_data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] The media could not be loaded
3 participants