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
|
||||
|
||||
__version__ = "1.1.26"
|
||||
__version__ = "1.1.27"
|
||||
|
|
|
@ -35,7 +35,7 @@ class Deezer:
|
|||
def get_token(self):
|
||||
token_data = self.gw_api_call('deezer.getUserData')
|
||||
return token_data["results"]["checkForm"]
|
||||
|
||||
|
||||
def get_track_filesizes(self, sng_id):
|
||||
try:
|
||||
site = requests.post(
|
||||
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue