[update] Bump GitHub REST API version to 2026-03-10 (#16435)

Ref: https://github.blog/changelog/2026-03-12-rest-api-version-2026-03-10-is-now-available/

Authored by: bashonly
This commit is contained in:
bashonly
2026-04-04 16:34:57 -05:00
committed by GitHub
parent 0f45ecc920
commit fe5e67c054

View File

@@ -316,7 +316,7 @@ class Updater:
return json.loads(self.ydl.urlopen(Request(url, headers={
'Accept': 'application/vnd.github+json',
'User-Agent': 'yt-dlp',
'X-GitHub-Api-Version': '2022-11-28',
'X-GitHub-Api-Version': '2026-03-10',
})).read().decode())
def _get_version_info(self, tag: str) -> tuple[str | None, str | None]: