This commit is contained in:
Thomas Lau 2021-11-05 11:14:09 +00:00
parent 46a3c45cbc
commit 87b564d609
1 changed files with 2 additions and 2 deletions

View File

@ -80,14 +80,14 @@ class ZSpotify:
def get_auth_header(cls):
return {
'Authorization': f'Bearer {cls.__get_auth_token()}',
'Accept-Language': f'{cls.CONFIG.get(LANGUAGE)}'
'Accept-Language': f'{cls.CONFIG.get("LANGUAGE")}'
}
@classmethod
def get_auth_header_and_params(cls, limit, offset):
return {
'Authorization': f'Bearer {cls.__get_auth_token()}',
'Accept-Language': f'{cls.CONFIG.get(LANGUAGE)}'
'Accept-Language': f'{cls.CONFIG.get("LANGUAGE")}'
}, {LIMIT: limit, OFFSET: offset}
@classmethod