diff --git a/nbs/00_core.ipynb b/nbs/00_core.ipynb index b10deb3..ed6a15a 100644 --- a/nbs/00_core.ipynb +++ b/nbs/00_core.ipynb @@ -71,6 +71,7 @@ " raise FileNotFoundError(\"Plash config not found. Please run plash_login and try again.\")\n", " cookies = Path(cookie_file).read_json()\n", " client.cookies.update(cookies)\n", + " client.headers.update({'X-PLASH': 'true'})\n", " return client" ] }, diff --git a/plash_cli/core.py b/plash_cli/core.py index ab6ce99..5ae5e64 100644 --- a/plash_cli/core.py +++ b/plash_cli/core.py @@ -27,6 +27,7 @@ def get_client(cookie_file): raise FileNotFoundError("Plash config not found. Please run plash_login and try again.") cookies = Path(cookie_file).read_json() client.cookies.update(cookies) + client.headers.update({'X-PLASH': 'true'}) return client # %% ../nbs/00_core.ipynb 6