Exposed Spotify Client ID/Secret in config.yml

This commit is contained in:
Manveer Basra
2018-10-30 14:12:37 -04:00
committed by Ritiek Malhotra
parent 0492c711cc
commit d215ce685d
3 changed files with 37 additions and 10 deletions

View File

@@ -34,6 +34,8 @@ default_conf = {
"skip": None,
"write-successful": None,
"log-level": "INFO",
"spotify_client_id": "4fe3fecfe5334023a1472516cc99d805",
"spotify_client_secret": "0f02b7c483c04257984695007a4a8d5c"
}
}
@@ -260,6 +262,18 @@ def get_arguments(raw_args=None, to_group=True, to_merge=True):
default=config["write-successful"],
help="path to file to write successful tracks to",
)
parser.add_argument(
"-sci",
"--spotify-client-id",
default=config["spotify_client_id"],
help=argparse.SUPPRESS
)
parser.add_argument(
"-scs",
"--spotify-client-secret",
default=config["spotify_client_secret"],
help=argparse.SUPPRESS
)
parser.add_argument(
"-c", "--config", default=None, help="path to custom config.yml file"
)