Open hejops opened 3 years ago
What is the use case for cleaning up filenames in this way?
As described above, such an approach probably causes more problems than it solves. At least on a typical NTFS file system, this should be the only filename cleanup necessary:
def clean_filename(filename):
return re.sub(r'[<>:"/\|?*]', "", filename)
Any non-English characters in a track title are not written to the filename. If there are several such tracks in an album, it will be impossible to download all tracks. One way to work around this would be to add the track number before the track title (which is what smloadr does).
Example: https://www.deezer.com/us/album/245806342
To reproduce: