2
0
Fork 0

config parsing fixes

This commit is contained in:
Luca Bilke 2023-06-27 17:20:21 +02:00
commit 71d9dcfa58
2 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,4 @@
git+https://github.com/tamland/python-tidal git+https://github.com/tamland/python-tidal
aigpy aigpy
pycrypto pycrypto
pyyaml

View file

@ -17,10 +17,10 @@ from datetime import datetime
with open("conf.yml", "r") as f: with open("conf.yml", "r") as f:
conf = yaml.safe_load(f) conf = yaml.safe_load(f)
USER_ID = conf["user id"] USER_ID = conf["user id"]
DL_PATH = conf["dl dir"] DL_PATH = conf["dl dir"] or '.'
DEST_PATH = os.getenv("dest dir") DEST_PATH = conf["dest dir"] or '.'
AUTH_PATH = os.getenv("authfile dir") AUTH_PATH = conf["authfile dir"] or '.'
SKIP_DOWNLOADED = bool(os.getenv("skip existing")) SKIP_DOWNLOADED = conf["skip existing"]
config = tidalapi.Config(quality=tidalapi.Quality.lossless) config = tidalapi.Config(quality=tidalapi.Quality.lossless)
session = tidalapi.Session(config) session = tidalapi.Session(config)