Modify $cmd to use PO Tokens if the $url is from youtube.com#8
Open
CU-Jon wants to merge 1 commit intotimendum:masterfrom
Open
Modify $cmd to use PO Tokens if the $url is from youtube.com#8CU-Jon wants to merge 1 commit intotimendum:masterfrom
CU-Jon wants to merge 1 commit intotimendum:masterfrom
Conversation
YouTube doesn't like us anymore. Modify the command to use POT - see: https://github.com/yt-dlp/yt-dlp/wiki/PO-Token-Guide
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.
YouTube is starting to enforce the requirement of PO Tokens.
I did a quick and dirty hack to add
--extractor-argsto use PO Tokens per the official PO Token GuideI didn't document exactly what's needed because I was in a rush, but I've tested and it works perfectly every time. Basically involves adding two plugins to the
yt-dlpplugins directory and also building thegenerate_once.jsper bgutil-ytdlp-pot-provider (see the above linked guide for exactly what's needed).I wanted to provide this just as a starting point for you to probably do a better job than I did, so feel free to deny this PR and do your own implementation. Or, I don't mind, when I have time, building out better documentation and even making this work a little cleaner. It probably needs to be further modified to check for the existence of the two plugins and the
generate_once.jsfile as well, when the $url is from youtube.com/youtu.be.