qobuz-dl icon indicating copy to clipboard operation
qobuz-dl copied to clipboard

Release type

Open Sildenafil99 opened this issue 1 year ago • 2 comments

Is it possible to split downloads by release type when downloading an artist's discography? (Album, EP & Singles, Other)

ex. Artist\ReleaseType\AlbumName\TrackTitle

thx

Sildenafil99 avatar May 22 '23 20:05 Sildenafil99

Yeah, it is possible. You need to do some changes download_release and download_track methods at downloader.py

download_release find this line dirn = os.path.join(self.path, sanitized_title)

replace with this

release_type = meta.get("release_type").upper()
dirn = os.path.join(self.path, release_type, sanitized_title)

download_track find this line dirn = os.path.join(self.path, sanitized_title)

replace with this

release_type = meta["album"]["release_type"].upper()
dirn = os.path.join(self.path, release_type, sanitized_title)

You need to make build again. Download source code and move C:\qobuz-dl-master. Open terminal as administrator. cd C:\qobuz-dl-master py -m build pip install C:\qobuz-dl-master\dist\qobuz_dl-0.9.9.10-py3-none-any.whl --force-reinstall --no-cache-dir

cmd64 avatar Jul 24 '23 23:07 cmd64

Is there a way to add the release type to the folder_format line in config.ini ? I'd like the choice to add something like {release_type} anywhere in the folder structure.

Dreamkiller711 avatar Feb 11 '24 20:02 Dreamkiller711