Skip to content

Modify $cmd to use PO Tokens if the $url is from youtube.com#8

Open
CU-Jon wants to merge 1 commit intotimendum:masterfrom
CU-Jon:master
Open

Modify $cmd to use PO Tokens if the $url is from youtube.com#8
CU-Jon wants to merge 1 commit intotimendum:masterfrom
CU-Jon:master

Conversation

@CU-Jon
Copy link

@CU-Jon CU-Jon commented May 24, 2025

YouTube is starting to enforce the requirement of PO Tokens.

I did a quick and dirty hack to add --extractor-args to use PO Tokens per the official PO Token Guide

I 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-dlp plugins directory and also building the generate_once.js per 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.js file as well, when the $url is from youtube.com/youtu.be.

YouTube doesn't like us anymore. Modify the command to use POT - see: https://github.com/yt-dlp/yt-dlp/wiki/PO-Token-Guide
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.

1 participant