From 997cc0f58b79be8fb24e57e96f0edcae9e99467a Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Sat, 20 Apr 2024 00:03:08 -0400 Subject: [PATCH] Actually check for invalid TIDs rather than just check for an empty string --- NUSD-Py.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NUSD-Py.py b/NUSD-Py.py index bf708d1..d016e50 100644 --- a/NUSD-Py.py +++ b/NUSD-Py.py @@ -167,8 +167,8 @@ class MainWindow(QMainWindow, Ui_MainWindow): elif result == -2: msgBox.setWindowTitle("Title ID/Version Not Found") msgBox.setText("No title with the provided Title ID or version could be found!") - msgBox.setInformativeText("Please make sure that you have entered a valid Title ID or selected one from the" - " title database, and that the provided version exists for the title you are" + msgBox.setInformativeText("Please make sure that you have entered a valid Title ID, or selected one from " + " the title database, and that the provided version exists for the title you are" " attempting to download.") msgBox.exec() elif result == -3: @@ -199,7 +199,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): def run_nus_download(self, progress_callback): tid = self.ui.tid_entry.text() - if tid == "": + if len(tid) != 16: return -1 try: version = int(self.ui.version_entry.text())