vitiko98 / qobuz-dl

A complete Lossless and Hi-Res music downloader for Qobuz
GNU General Public License v3.0
1.45k stars 192 forks source link

Sanitize album and track attributes #228

Closed marekromk closed 1 year ago

marekromk commented 1 year ago

Now using "sanitize_filename" on the album and artist attributes. Now no accidental subdirectories get created because of characters like: ":" or "/"

sanitize_filepath accepts "/" or sometimes ":" in paths, because a file path can include subdirectories. A file name shouldn't have subdirectories, so they get removed from the path. You can't use sanitize_filename on the entire sanitized_title, since than it removes intentional subdirectories made because of folder_format.