79509331

Date: 2025-03-14 14:23:09
Score: 1.5
Natty:
Report link

I've got far enough and replaced characters but I still have an error I simply don't understand, there should not be a invalid character anymore

FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden: 'C:\\Users\\merta\\Music\\music\\music.2\\1000x COOLER + W1NNER (prod. by Young Kira) - TJ_beastboy.mp3' -> 'C:\\Users\\merta\\Music\\music\\music.2\\mitMeta\\1000x COOLER _ W1NNER (prod. by Young Kira) - TJ_beastboy.mp3'

replacements = str.maketrans({"/": "_", "|": "_", '"': "_", "'": "_", "?" : "_", "<" : "_", ">" : "_", "[":"_", "]":"_", "*":"_",\
                                                      "%":"_", "\\":"_", ":": "_", "`":"_", "!":"_", "@":"_","+":"_","=":"_"})
                        newname = newname.translate(replacements)
Reasons:
  • RegEx Blacklisted phrase (1): I still have an error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mertus Mentoles