mirror of
https://github.com/glomatico/votify.git
synced 2026-10-11 18:32:26 +02:00
Default cookies_path for SpotifyApi factory
This commit is contained in:
+4
-1
@@ -67,7 +67,10 @@ class SpotifyApi:
|
||||
return cookie_dict
|
||||
|
||||
@classmethod
|
||||
async def create_from_netscape_cookies(cls, cookies_path: str) -> "SpotifyApi":
|
||||
async def create_from_netscape_cookies(
|
||||
cls,
|
||||
cookies_path: str = "./cookies.txt",
|
||||
) -> "SpotifyApi":
|
||||
cookies = cls._parse_cookies(cookies_path)
|
||||
sp_dc = cookies.get("sp_dc")
|
||||
if sp_dc is None:
|
||||
|
||||
Reference in New Issue
Block a user