Compare commits

..

2 Commits
v1.5.0 ... main

Author SHA1 Message Date
dfb527388c
Fix printing TID in Ticket info 2025-04-18 17:15:03 -04:00
46784f126e
Bump version to update to libWiiPy v0.6.1 2025-04-18 13:55:20 -04:00
2 changed files with 4 additions and 4 deletions

View File

@ -106,14 +106,14 @@ def _print_ticket_info(ticket: libWiiPy.title.Ticket, signing_cert=None):
print(f"Ticket Info")
ascii_tid = ""
try:
ascii_tid = str(bytes.fromhex(ticket.title_id.decode()[8:].replace("00", "30")).decode("ascii"))
ascii_tid = str(bytes.fromhex(binascii.hexlify(ticket.title_id).decode()[8:].replace("00", "30")).decode("ascii"))
except UnicodeDecodeError or binascii.Error:
pass
pattern = r"^[a-z0-9!@#$%^&*]{4}$"
if re.fullmatch(pattern, ascii_tid, re.IGNORECASE):
print(f" Title ID: {ticket.title_id.decode().upper()} ({ascii_tid})")
print(f" Title ID: {binascii.hexlify(ticket.title_id).decode().upper()} ({ascii_tid})")
else:
print(f" Title ID: {ticket.title_id.decode().upper()}")
print(f" Title ID: {binascii.hexlify(ticket.title_id).decode().upper()}")
# This type of version number really only applies to the System Menu and IOS.
if ticket.title_id.decode().startswith("00000001"):
if ticket.title_id.decode() == "0000000100000001":

View File

@ -18,7 +18,7 @@ from commands.title.nus import *
from commands.title.tmd import *
from commands.title.wad import *
wiipy_ver = "1.5.0"
wiipy_ver = "1.5.1"
if __name__ == "__main__":
# Main argument parser.