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