fix: send the github token on every api call

This commit is contained in:
Abdessamad Derraz committed 2026-10-10 12:17:21 +02:00
1 parent fd8db894d8
commit 6a39264fa6
4 files changed
+38 -16

No files matched your search

+3 -1
View File
@@ -318,7 +318,9 @@ FBNEO_DATS_API = "https://api.github.com/repos/libretro/FBNeo/contents/dats"
def _api_json(url: str) -> object:
request = urllib.request.Request(url, headers={"User-Agent": "retrobios"})
from .base_scraper import github_headers
request = urllib.request.Request(url, headers=github_headers())
with urllib.request.urlopen(request, timeout=60) as response:
return json.load(response)