Fix error in docs

This commit is contained in:
Dan Herd 2021-08-20 08:56:06 +01:00 • committed by GitHub
commit 9d9d747b72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,14 +58,14 @@ To set up your project, open a Python console and call :py:func:`YTMusic.setup`
.. code-block:: python
from ytmusicapi import YTMusic
YTMusic.setup(filepath=headers_auth.json)
YTMusic.setup(filepath="headers_auth.json")
If you don't want terminal interaction in your project, you can pass the request headers with the ``headers_raw`` parameter:
.. code-block:: python
from ytmusicapi import YTMusic
YTMusic.setup(filepath=headers_auth.json, headers_raw="<headers copied above>")
YTMusic.setup(filepath="headers_auth.json", headers_raw="<headers copied above>")
The function returns a JSON string with the credentials needed for :doc:`Usage <usage>`. Alternatively, if you passed the filepath parameter as described above,
a file called ``headers_auth.json`` will be created in the current directory, which you can pass to ``YTMusic()`` for authentication.