ytdlp-interface icon indicating copy to clipboard operation
ytdlp-interface copied to clipboard

feat: add GitHub token authentication for API rate limit

Open survivor998 opened this issue 5 months ago • 0 comments

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_token field to settings_t
  • types.cpp: Serialize/deserialize github_token in to_json()/from_json()
  • util.hpp: Add optional token parameter to get_inet_res()
  • util.cpp: Send Authorization: token <TOKEN> header for GitHub API requests
  • gui.cpp: Pass conf.github_token in 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

survivor998 avatar Jun 08 '26 22:06 survivor998