Remove whitespace from arl and Spotify clientID and clientSecret
This commit is contained in:
parent
ffb803cf3c
commit
41f1e44a6f
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
__version__ = "1.1.26"
|
__version__ = "1.1.27"
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Deezer:
|
||||||
def get_token(self):
|
def get_token(self):
|
||||||
token_data = self.gw_api_call('deezer.getUserData')
|
token_data = self.gw_api_call('deezer.getUserData')
|
||||||
return token_data["results"]["checkForm"]
|
return token_data["results"]["checkForm"]
|
||||||
|
|
||||||
def get_track_filesizes(self, sng_id):
|
def get_track_filesizes(self, sng_id):
|
||||||
try:
|
try:
|
||||||
site = requests.post(
|
site = requests.post(
|
||||||
|
@ -153,6 +153,7 @@ class Deezer:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def login_via_arl(self, arl, child=0):
|
def login_via_arl(self, arl, child=0):
|
||||||
|
arl = arl.strip()
|
||||||
cookie_obj = requests.cookies.create_cookie(
|
cookie_obj = requests.cookies.create_cookie(
|
||||||
domain='.deezer.com',
|
domain='.deezer.com',
|
||||||
name='arl',
|
name='arl',
|
||||||
|
|
|
@ -62,6 +62,8 @@ class SpotifyHelper:
|
||||||
return self.credentials
|
return self.credentials
|
||||||
|
|
||||||
def setCredentials(self, spotifyCredentials):
|
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:
|
with open(path.join(self.configFolder, 'authCredentials.json'), 'w') as f:
|
||||||
json.dump(spotifyCredentials, f, indent=2)
|
json.dump(spotifyCredentials, f, indent=2)
|
||||||
self.credentials = spotifyCredentials
|
self.credentials = spotifyCredentials
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="deemix",
|
name="deemix",
|
||||||
version="1.1.26",
|
version="1.1.27",
|
||||||
description="A barebone deezer downloader library",
|
description="A barebone deezer downloader library",
|
||||||
long_description=README,
|
long_description=README,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|
Loading…
Reference in New Issue