Merge pull request #109 from lwoloszy/master

Get new access token 60 seconds before old one times out
This commit is contained in:
Paul Lamere 2016-12-31 17:56:42 -05:00 committed by GitHub
commit 07b6c052e3

View File

@ -78,7 +78,7 @@ class SpotifyClientCredentials(object):
def _is_token_expired(self, token_info):
now = int(time.time())
return token_info['expires_at'] < now
return token_info['expires_at'] - now < 60
def _add_custom_values_to_token_info(self, token_info):
"""