Skip to content

fix(poToken): use page-specific context - #8751

Draft
FineFindus wants to merge 1 commit into
libre-tube:masterfrom
FineFindus:fix/potoken-eventid
Draft

FineFindus wants to merge 1 commit into
libre-tube:masterfrom
FineFindus:fix/potoken-eventid

Conversation

@FineFindus

Copy link
Copy Markdown
Collaborator

Fixes the poToken generation by extracting the eventId from the homepage.

Port of InfinityLoop1308/PipePipeClient#86

Fixes the poToken generation by extracting the `eventId` from the homepage.

Ref: InfinityLoop1308/PipePipeClient#86
Comment on lines +105 to +106
val pageHtml = makeRequest("https://youtube.com/")
val (eventId, challengeData) = parseYoutubePageAttestation(pageHtml)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure happy that this requires us the make 3 sequential HTTP calls (one of them to the homepage), but I'm also not sure how to avoid them …

@Figim

This comment was marked as low quality.

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.

2 participants