WiiUDownloader/grabTitles.py
Xpl0itU e40d499b72
Port title database and cdecrypt to Go (#87)
* Experimental removal of cdecrypt

* Pushing before cdecrypt port

* Some progress...

* Replace title database with native Go

* Update title db url

* Almost working decryption and extraction

* Almost there

* Remove unnecessary type conversion

* Fix directory structure creation

* Finally fix decryption

* Cleanup print statements

* Do not write FST to file

* Add progress

* Add encrypted contents decryption
2024-03-31 19:38:13 +02:00

24 lines
650 B
Python

#!/bin/env python
import os
import urllib.request
import ssl
# Don't edit below this line
def checkAndDeleteFile(file):
if os.path.exists(file):
print(f"Deleting {file}")
os.remove(file)
# Disable certificate verification
ssl_context = ssl.create_default_context()
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
opener = urllib.request.build_opener(urllib.request.HTTPSHandler(context=ssl_context))
opener.addheaders = [("User-agent", "NUSspliBuilder/2.1")]
urllib.request.install_opener(opener)
checkAndDeleteFile("db.go")
urllib.request.urlretrieve("https://napi.v10lator.de/db?t=go", "db.go")