Remove whitespace from arl and Spotify clientID and clientSecret

This commit is contained in:
RemixDev 2020-07-31 14:09:14 +02:00
parent ffb803cf3c
commit 41f1e44a6f
4 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,3 @@
#!/usr/bin/env python3
__version__ = "1.1.26"
__version__ = "1.1.27"

View File

@ -153,6 +153,7 @@ class Deezer:
return True
def login_via_arl(self, arl, child=0):
arl = arl.strip()
cookie_obj = requests.cookies.create_cookie(
domain='.deezer.com',
name='arl',

View File

@ -62,6 +62,8 @@ class SpotifyHelper:
return self.credentials
def setCredentials(self, spotifyCredentials):
spotifyCredentials['clientId'] = spotifyCredentials['clientId'].strip()
spotifyCredentials['clientSecret'] = spotifyCredentials['clientSecret'].strip()
with open(path.join(self.configFolder, 'authCredentials.json'), 'w') as f:
json.dump(spotifyCredentials, f, indent=2)
self.credentials = spotifyCredentials

View File

@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
setup(
name="deemix",
version="1.1.26",
version="1.1.27",
description="A barebone deezer downloader library",
long_description=README,
long_description_content_type="text/markdown",