Compare commits
2 Commits
ebff41e016
...
main
Author | SHA1 | Date | |
---|---|---|---|
d26b1cfe46
|
|||
6e10a30c48
|
@ -48,8 +48,11 @@ def download(url, bitrate, portable, path):
|
||||
arl = f.readline().rstrip("\n").strip()
|
||||
if not dz.login_via_arl(arl): arl = requestValidArl()
|
||||
else: arl = requestValidArl()
|
||||
try:
|
||||
with open(configFolder / '.arl', 'w', encoding="utf-8") as f:
|
||||
f.write(arl)
|
||||
except:
|
||||
print(f"Error opening {configFolder / '.arl'}, continuing anyway.")
|
||||
|
||||
plugins = {}
|
||||
if Spotify:
|
||||
|
21
shell.nix
Normal file
21
shell.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
}:
|
||||
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.python312
|
||||
pkgs.python312Packages.virtualenv
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
if [ ! -d .venv ]; then
|
||||
virtualenv .venv
|
||||
. .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
pip install -e .
|
||||
else
|
||||
. .venv/bin/activate
|
||||
fi
|
||||
'';
|
||||
}
|
Reference in New Issue
Block a user