4 Commits

Author SHA1 Message Date
Vitiko 9c8901dc2f Update README.md 2025-07-18 23:04:07 -04:00
Vitiko 8b3a3c7e3c Update README.md 2025-07-18 23:03:06 -04:00
Vitiko 8096e6cf65 Merge pull request #228 from Qamynn/master
Sanitize album and track attributes
2023-08-21 18:36:43 -04:00
Qamynn 62f995483d Sanitize album and track attributes
Now using "sanitize_filename" on the album and artist attributes. Now no accidental subdirectories get created because of characters like: ":" or "/"
2023-08-20 14:16:43 +02:00
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# qobuz-dl
Search, explore and download Lossless and Hi-Res music from [Qobuz](https://www.qobuz.com/).
Search, explore and download Lossless and Hi-Res music from [Qobuz](https://www.qobuz.com/). It *just works*™ (2025).
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VZWSWVGZGJRMU&source=url)
## Features
+4 -4
View File
@@ -254,8 +254,8 @@ class Download:
@staticmethod
def _get_track_attr(meta, track_title, bit_depth, sampling_rate):
return {
"album": meta["album"]["title"],
"artist": meta["album"]["artist"]["name"],
"album": sanitize_filename(meta["album"]["title"]),
"artist": sanitize_filename(meta["album"]["artist"]["name"]),
"tracktitle": track_title,
"year": meta["album"]["release_date_original"].split("-")[0],
"bit_depth": bit_depth,
@@ -265,8 +265,8 @@ class Download:
@staticmethod
def _get_album_attr(meta, album_title, file_format, bit_depth, sampling_rate):
return {
"artist": meta["artist"]["name"],
"album": album_title,
"artist": sanitize_filename(meta["artist"]["name"]),
"album": sanitize_filename(album_title),
"year": meta["release_date_original"].split("-")[0],
"format": file_format,
"bit_depth": bit_depth,