Don't panic when .arl is not writable
This commit is contained in:
parent
6e10a30c48
commit
d26b1cfe46
|
@ -48,8 +48,11 @@ def download(url, bitrate, portable, path):
|
||||||
arl = f.readline().rstrip("\n").strip()
|
arl = f.readline().rstrip("\n").strip()
|
||||||
if not dz.login_via_arl(arl): arl = requestValidArl()
|
if not dz.login_via_arl(arl): arl = requestValidArl()
|
||||||
else: arl = requestValidArl()
|
else: arl = requestValidArl()
|
||||||
with open(configFolder / '.arl', 'w', encoding="utf-8") as f:
|
try:
|
||||||
f.write(arl)
|
with open(configFolder / '.arl', 'w', encoding="utf-8") as f:
|
||||||
|
f.write(arl)
|
||||||
|
except:
|
||||||
|
print(f"Error opening {configFolder / '.arl'}, continuing anyway.")
|
||||||
|
|
||||||
plugins = {}
|
plugins = {}
|
||||||
if Spotify:
|
if Spotify:
|
||||||
|
|
Loading…
Reference in New Issue