diff --git a/zspotify/zspotify.py b/zspotify/zspotify.py index bae47b3e..6c3ec531 100644 --- a/zspotify/zspotify.py +++ b/zspotify/zspotify.py @@ -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):