mirror of
https://github.com/Wojtek242/qobuz-dl.git
synced 2024-12-22 15:24:40 +01:00
Fix windows config path
This commit is contained in:
parent
dd5ec5764c
commit
bb84d7ebd5
@ -17,15 +17,16 @@ Seach and download Lossless and Hi-Res music from [Qobuz](https://www.qobuz.com/
|
||||
#### Install qobuz-dl with pip
|
||||
##### Linux / MAC OS / Windows
|
||||
```
|
||||
pip3 install qobuz-dl --user
|
||||
pip3 install --upgrade qobuz-dl
|
||||
```
|
||||
#### Run qobuz-dl and enter your credentials
|
||||
##### Linux / MAC OS
|
||||
```
|
||||
qobuz-dl
|
||||
```
|
||||
or
|
||||
##### Windows
|
||||
```
|
||||
qdl
|
||||
qobuz-dl.exe
|
||||
```
|
||||
|
||||
> If something fails, run `qobuz-dl -r` to reset your config file.
|
||||
|
@ -10,7 +10,11 @@ import qobuz_dl.spoofbuz as spoofbuz
|
||||
from qobuz_dl import downloader, qopy
|
||||
from qobuz_dl.search import Search
|
||||
|
||||
OS_CONFIG = os.path.join(os.environ["HOME"], ".config") or os.environ.get("APPDATA")
|
||||
if os.name == "nt":
|
||||
OS_CONFIG = os.environ.get("APPDATA")
|
||||
else:
|
||||
OS_CONFIG = os.path.join(os.environ["HOME"], ".config")
|
||||
|
||||
CONFIG_PATH = os.path.join(OS_CONFIG, "qobuz-dl")
|
||||
CONFIG_FILE = os.path.join(CONFIG_PATH, "config.ini")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user