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

add flag to show configuration and db info #210

Closed TheDen closed 1 year ago

TheDen commented 1 year ago

PR to add a --show-config/-c flag that prints the config and DB locations, as well as the configuration file content. Useful for users to be able to locate where the files are located, I noticed I had to dig around since it wasn't clear.

Example output (with parts redacted)

$ qobuz-dl --show-config
Configuation: /Users/XXXXXXXX/.config/qobuz-dl/config.ini
Database: /Users/XXXXXXXX/.config/qobuz-dl/qobuz_dl.db
---
[DEFAULT]
email = XXXXXXXX
password = XXXXXXXX
default_folder = Qobuz Downloads
default_quality = 6
default_limit = 20
no_m3u = false
albums_only = false
no_fallback = false
og_cover = false
embed_art = false
no_cover = false
no_database = false
app_id = XXXXXXXX
secrets = XXXXXXXX
folder_format = {artist} - {album} ({year}) [{bit_depth}B-{sampling_rate}kHz]
track_format = {tracknumber}. {tracktitle}
smart_discography = false
vitiko98 commented 1 year ago

Thanks for the PR!

Can you remove the -c (or change to -sc)? I plan to introduce a custom config path option in the future.