From 64d6dd4718bdc45ab89f61c730d539f73f4773e2 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Thu, 26 Mar 2026 15:50:56 -0300 Subject: [PATCH] Set protobuf headers on SpotifyApi requests --- votify/api/api.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/votify/api/api.py b/votify/api/api.py index ffc2b98..5ad37fb 100644 --- a/votify/api/api.py +++ b/votify/api/api.py @@ -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