mirror of
https://github.com/Abdess/retrobios.git
synced 2026-06-30 14:21:11 +00:00
add retrobat platform support (scraper, config, verify)
This commit is contained in:
parent
1129aebfc4
commit
851a14e49a
6 changed files with 1689 additions and 36 deletions
|
|
@ -51,7 +51,8 @@ def fetch_large_file(name: str, dest_dir: str = ".cache/large") -> str | None:
|
|||
if os.path.exists(cached):
|
||||
return cached
|
||||
|
||||
url = f"https://github.com/{LARGE_FILES_REPO}/releases/download/{LARGE_FILES_RELEASE}/{name}"
|
||||
encoded_name = urllib.request.quote(name)
|
||||
url = f"https://github.com/{LARGE_FILES_REPO}/releases/download/{LARGE_FILES_RELEASE}/{encoded_name}"
|
||||
try:
|
||||
req = urllib.request.Request(url, headers={"User-Agent": "retrobios-pack/1.0"})
|
||||
with urllib.request.urlopen(req, timeout=300) as resp:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue