Skip to content

Conversation

@iBicha
Copy link
Contributor

@iBicha iBicha commented Jul 7, 2025

Just a proposal to get comments
getInfo and getBasicInfo should be using content bound poTokens. So that means these calls will need to take a poToken as an argument.
I added GetVideoInfoOptions - while it is a breaking change, but avoids the need for breaking again if/when new options are needed for these operations.
Not providing content bound poToken will fallback to session poToken, I believe that should have better results than no token at all.

BEGIN_COMMIT_OVERRIDE
feat(Innertube)!: Add GetVideoInfoOptions to support content bound PoTokens (#994)

BREAKING CHANGE: The second parameters of Innertube.getInfo() and Innertube.getBasicInfo() have changed to an object, that means that Innertube.getInfo('jNQXAC9IVRw', 'MWEB') becomes Innertube.getInfo('jNQXAC9IVRw', { client: 'MWEB' }) and Innertube.getBasicInfo('jNQXAC9IVRw', 'MWEB') becomes Innertube.getBasicInfo('jNQXAC9IVRw', { client: 'MWEB' }). The same applies to the getInfo method in the Music and Kids client classes.
END_COMMIT_OVERRIDE

@iBicha iBicha changed the title Add GetVideoInfoOptions to support content bound PoTokens feat(Innertube): Add GetVideoInfoOptions to support content bound PoTokens Jul 7, 2025
@absidue absidue changed the title feat(Innertube): Add GetVideoInfoOptions to support content bound PoTokens feat(Innertube)!: Add GetVideoInfoOptions to support content bound PoTokens Jul 7, 2025
@LuanRT LuanRT marked this pull request as ready for review July 18, 2025 14:01
@LuanRT LuanRT changed the title feat(Innertube)!: Add GetVideoInfoOptions to support content bound PoTokens feat(Innertube)!: Add GetVideoInfoOptions to support content bound PoTokens Jul 18, 2025
@LuanRT LuanRT merged commit b6386e4 into LuanRT:main Jul 18, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants