How grqz/yt-dlp-get-pot works
This is yt-dlp’s client-side PO Token provider framework; it does not retrieve tokens itself. The workflow begins when YouTube extraction needs a token: the plugin tries yt-dlp’s existing implementation, then dispatches a request to a compatible registered provider and uses its returned token. The provider contract handles request validation and response formatting, while registration and preferences support provider discovery and selection. Provider implementations are external plugins. The graph reflects the sampled runtime code and README; no provider implementation is included here.
Main entry points: getpot_client.py YouTube plugin · getpot.py Provider contract
Components 6
YouTube client
- YouTube plugin
yt_dlp_plugins/extractor/getpot_client.py
Provider framework
- Provider registry
yt_dlp_plugins/extractor/getpot.py - Provider contract
yt_dlp_plugins/extractor/getpot.py - Token response
yt_dlp_plugins/extractor/getpot.py
Provider extensions
- Provider plugin
Other components
- yt-dlp
Connections 8
- yt-dlp → YouTube plugin: requests token
README.md - YouTube plugin → Provider registry: builds director
yt_dlp_plugins/extractor/getpot_client.py - YouTube plugin → Provider contract: dispatches request
yt_dlp_plugins/extractor/getpot_client.py - Provider registry → Provider contract: registers handlers
yt_dlp_plugins/extractor/getpot.py - Provider contract → Token response: formats token
yt_dlp_plugins/extractor/getpot.py - Provider plugin → Provider registry: registers provider
README.md - Provider plugin → Provider contract: implements contract
README.md - Token response → YouTube plugin: returns token
yt_dlp_plugins/extractor/getpot_client.py