From 8ba21da2ea7055c3a43f2199e3afce855d1a1920 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Tue, 24 Mar 2026 12:05:14 -0300 Subject: [PATCH] Forward args/kwargs in create_from_netscape_cookies --- votify/api/api.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/votify/api/api.py b/votify/api/api.py index a731b8c..34cc21a 100644 --- a/votify/api/api.py +++ b/votify/api/api.py @@ -79,6 +79,8 @@ class SpotifyApi: async def create_from_netscape_cookies( cls, cookies_path: str = "./cookies.txt", + *args, + **kwargs, ) -> "SpotifyApi": cookies = cls._parse_cookies(cookies_path) sp_dc = cookies.get("sp_dc") @@ -89,7 +91,11 @@ class SpotifyApi: "from the Spotify homepage and are logged in." ) - return await cls.create(sp_dc=sp_dc) + return await cls.create( + sp_dc=sp_dc, + *args, + **kwargs, + ) @classmethod async def create(