forked from NinjaCheetah/NUSGet
Improve illegal character removal
Now removes the NTFS-forbidden characters on all platforms, as some may still cause issues depending on your OS and FS. These characters are also now removed during the actual download process, so they'll still appear in the WAD name box, but will be stripped out before the file is created.
This commit is contained in:
@@ -279,10 +279,6 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
||||
if selected_title.category.find("System") != -1 or selected_title.category == "IOS":
|
||||
archive_name += "-Wii"
|
||||
archive_name += ".wad"
|
||||
# On Windows, we need to strip characters that aren't allowed on NTFS. APFS and Linux filesystems aren't nearly
|
||||
# as picky, but some titles contain characters that NTFS dislikes which will break downloads.
|
||||
if os.name == "nt":
|
||||
archive_name = archive_name.translate({ord(c): None for c in '/\\:*"?<>|'})
|
||||
self.ui.archive_file_entry.setText(archive_name)
|
||||
danger_text = selected_title.danger
|
||||
# Add warning text to the log if the selected title has no ticket.
|
||||
|
||||
Reference in New Issue
Block a user