Update zspotify.py

This commit is contained in:
thomaslty
2021-11-05 18:59:40 +08:00
committed by GitHub
parent b488b277f0
commit 3e48071f60

View File

@@ -80,12 +80,15 @@ class ZSpotify:
def get_auth_header(cls):
return {
'Authorization': f'Bearer {cls.__get_auth_token()}',
'Accept-Language': 'zh'
'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()}'}, {LIMIT: limit, OFFSET: offset}
return {
'Authorization': f'Bearer {cls.__get_auth_token()}',
'Accept-Language': f'{cls.CONFIG.get(LANGUAGE)}'
}, {LIMIT: limit, OFFSET: offset}
@classmethod
def invoke_url_with_params(cls, url, limit, offset, **kwargs):