Forward args/kwargs in create_from_netscape_cookies

This commit is contained in:
Rafael Moraes
2026-03-24 12:05:14 -03:00
parent bc81658cc1
commit 8ba21da2ea
+7 -1
View File
@@ -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(