ytdlp-interface
ytdlp-interface copied to clipboard
feat: add GitHub token authentication for API rate limit
Add support for a configurable GitHub Personal Access Token to avoid API rate limiting (60/hr unauthenticated -> 5000/hr authenticated).
Changes
- types.hpp: Add
github_tokenfield tosettings_t - types.cpp: Serialize/deserialize
github_tokeninto_json()/from_json() - util.hpp: Add optional
tokenparameter toget_inet_res() - util.cpp: Send
Authorization: token <TOKEN>header for GitHub API requests - gui.cpp: Pass
conf.github_tokenin all 8 GitHub API calls
Usage
Add to ytdlp-interface.json:
{"github_token": "ghp_your_token_here"}
No token scope is needed for public repo access. Fully backward compatible.
🤖 Generated with Claude Code