mirror of
https://github.com/glomatico/votify.git
synced 2026-10-28 01:32:29 +01:00
Set protobuf headers on SpotifyApi requests
This commit is contained in:
@@ -720,6 +720,10 @@ class SpotifyApi:
|
||||
name="PlayPlay license",
|
||||
response_status_code=response.status_code,
|
||||
response_text=response.text,
|
||||
headers={
|
||||
"Accept": "application/x-protobuf",
|
||||
"Content-Type": "application/x-protobuf",
|
||||
},
|
||||
)
|
||||
|
||||
logger.debug("Received PlayPlay license: (bytes)")
|
||||
@@ -732,6 +736,10 @@ class SpotifyApi:
|
||||
response = await self.client.post(
|
||||
EXTENDED_METADATA_API_URL,
|
||||
content=request,
|
||||
headers={
|
||||
"Accept": "application/x-protobuf",
|
||||
"Content-Type": "application/x-protobuf",
|
||||
},
|
||||
)
|
||||
extended_metadata = response.content
|
||||
|
||||
|
||||
Reference in New Issue
Block a user