Add YouTube PO token & IP rotation#1772
Draft
MichailiK wants to merge 14 commits intojagrosh:masterfrom
Draft
Conversation
3 tasks
3 tasks
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
|
For anyone wondering, I was able to build this using jdk-21 and maven on a windows machine - and it worked, all I had to do was drop the target/JMusicBot-All.jre in place of the 0.4.3 version and double click and it worked. Playing music right now in my server. Should be simple to make the pipelines pass. Small refactor to reduce complexity of your added ip functionality and we'd be good to make a new tag, I'd think. If I don't see any progress here in a week I'll fork and tag a release. Update: I made a release you use until this repo is resolved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request...
Description
Unfortunately the setup for both are fairly complicated. I'm hoping that obtaining a PO token bit can be automated (thus this being a draft PR). IPv6 rotation is even more complicated & hosting-dependent, so this is probably reserved for power users.
Purpose
Allows for (semi-)reliable YouTube playback again
Relevant Issue(s)
Somewhat fixes #1588
Somewhat fixes #1682
TODO
youtube-sourceREADME suggests to run theyoutube-trusted-session-generatorpython script/docker image to generate these.yt-dlp's wiki has a guide on manually retrieving PO tokenscontext.client.visitorData, im not sure if its the identical though i have to yet double check.