From 4e28b7e9a3779d8c2e4790beb8756dcce9e89b74 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Mon, 27 Apr 2026 08:54:22 -0300 Subject: [PATCH] Enable redirects and use correct storefront header --- gamdl/api/itunes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gamdl/api/itunes.py b/gamdl/api/itunes.py index be55f3b..f2bd042 100644 --- a/gamdl/api/itunes.py +++ b/gamdl/api/itunes.py @@ -77,6 +77,7 @@ class ItunesApi: client = httpx.AsyncClient( timeout=60.0, + follow_redirects=True, ) return cls( @@ -133,7 +134,7 @@ class ItunesApi: response = await self.client.get( ITUNES_PAGE_API_URL.format(media_type=media_type, media_id=media_id), headers={ - "X-Apple-Store-Front": f"{self.storefront_id}-1,32 t:music31", + "X-Apple-Store-Front": f"{self.storefront_id}-28,32 t:music31", }, ) response.raise_for_status()