config parsing fixes
This commit is contained in:
parent
c50320c35d
commit
71d9dcfa58
2 changed files with 5 additions and 4 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
git+https://github.com/tamland/python-tidal
|
git+https://github.com/tamland/python-tidal
|
||||||
aigpy
|
aigpy
|
||||||
pycrypto
|
pycrypto
|
||||||
|
pyyaml
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue