Skip to content

Commit

Permalink
fix readme links and test error
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Jan 20, 2022
1 parent 63eb4b0 commit 32f5f51
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Welcome to TMDbAPIs Documentation!
:alt: Read the Docs

.. image:: https://img.shields.io/github/v/release/meisnate12/TMDbAPIs?style=plastic
:target: https://github.com/meisnate12/TMDbAPI/releases
:target: https://github.com/meisnate12/TMDbAPIs/releases
:alt: GitHub release (latest by date)

.. image:: https://img.shields.io/pypi/v/TMDbAPIs?style=plastic
Expand Down Expand Up @@ -64,7 +64,7 @@ To create a TMDbAPIs Object you need your V3 API Key, which can be found followi
Authenticating V3 API Token
----------------------------------------------------------

To authenticate your TMDb V3 API Token you can either authenticate your TMDb V4 Token or use the :meth:`~tmdbapis.tmdb.TMDbAPIs.authenticate` method.
To authenticate your TMDb V3 API Token you can either authenticate your TMDb V4 Token or use the `authenticate() <https://tmdbapis.readthedocs.io/en/latest/objapi.html#tmdbapis.tmdb.TMDbAPIs.authenticate>`_ method.

.. code-block:: python
Expand Down Expand Up @@ -92,7 +92,7 @@ To save your authenticated session use the ``session_id`` Attribute.
with open("session_id.txt", "w") as text_file:
print(tmdb.session_id, file=text_file)
To load the authenticated session use the ``session_id`` Parameter of the :class:`~tmdbapis.tmdb.TMDbAPIs` constructor.
To load the authenticated session use the ``session_id`` Parameter of the `TMDbAPIs <https://tmdbapis.readthedocs.io/en/latest/objapi.html#tmdbapis.tmdb.TMDbAPIs>`_ constructor.

.. code-block:: python
Expand All @@ -110,7 +110,7 @@ To load the authenticated session use the ``session_id`` Parameter of the :class
Adding TMDb V4 API Read Access Token
----------------------------------------------------------

To gain read access to TMDb V4's API just provide you're TMDb V4 Access Token either using the ``v4_access_token`` Parameter of the :class:`~tmdbapis.tmdb.TMDbAPIs` constructor or by using the :meth:`~tmdbapis.tmdb.TMDbAPIs.v4_access_token` method.
To gain read access to TMDb V4's API just provide you're TMDb V4 Access Token either using the ``v4_access_token`` Parameter of the `TMDbAPIs <https://tmdbapis.readthedocs.io/en/latest/objapi.html#tmdbapis.tmdb.TMDbAPIs>`_ constructor or by using the `v4_access_token() <https://tmdbapis.readthedocs.io/en/latest/objapi.html#tmdbapis.tmdb.TMDbAPIs.v4_access_token>`_ method.

To gain read access to TMDb V4's API need your TMDb V4 Access Token, which can be found following `this guide <https://developers.themoviedb.org/3/getting-started/introduction>`_.

Expand All @@ -129,9 +129,9 @@ Authenticating TMDb V4 API Token

To authenticate your TMDB V4 Read Access Token it is a multi step process.

1. Add your TMDb V4 API Read Access Token.
2. Authenticate the URL returned from :meth:`~tmdbapis.tmdb.TMDbAPIs.v4_authenticate`.
3. Once the URL has been authenticated you must approve it by running :meth:`~tmdbapis.tmdb.TMDbAPIs.v4_approved`.
1. Add your TMDb V4 API Read Access Token.
2. Authenticate the URL returned from `v4_authenticate() <https://tmdbapis.readthedocs.io/en/latest/objapi.html#tmdbapis.tmdb.TMDbAPIs.v4_authenticate>`_.
3. Once the URL has been authenticated you must approve it by running `v4_approved() <https://tmdbapis.readthedocs.io/en/latest/objapi.html#tmdbapis.tmdb.TMDbAPIs.v4_approved>`_.

.. code-block:: python
Expand Down Expand Up @@ -167,7 +167,7 @@ To save your authenticated token use the ``v4_access_token`` Attribute.
with open("access_token.txt", "w") as text_file:
print(tmdb.v4_access_token, file=text_file)
To load the authenticated token use the ``v4_access_token`` Parameter of the :class:`~tmdbapis.tmdb.TMDbAPIs` constructor or the :meth:`~tmdbapis.tmdb.TMDbAPIs.v4_access_token` method.
To load the authenticated token use the ``v4_access_token`` Parameter of the `TMDbAPIs <https://tmdbapis.readthedocs.io/en/latest/objapi.html#tmdbapis.tmdb.TMDbAPIs>`_ constructor or the `v4_access_token() <https://tmdbapis.readthedocs.io/en/latest/objapi.html#tmdbapis.tmdb.TMDbAPIs.v4_access_token>`_ method.

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2
2 changes: 1 addition & 1 deletion docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Welcome to TMDbAPIs Documentation!
:alt: Read the Docs

.. image:: https://img.shields.io/github/v/release/meisnate12/TMDbAPIs?style=plastic
:target: https://github.com/meisnate12/TMDbAPI/releases
:target: https://github.com/meisnate12/TMDbAPIs/releases
:alt: GitHub release (latest by date)

.. image:: https://img.shields.io/pypi/v/TMDbAPIs?style=plastic
Expand Down
2 changes: 1 addition & 1 deletion tmdbapis/objs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def _parse(self, data=None, attrs: Optional[Union[str, list]] = None, value_type
elif value["media_type"] == "person":
return tmdbapis.objs.reload.Person(self._tmdb, value)
elif value_type == "list":
return tmdbapis.objs.pagination.List(self._tmdb, value)
return tmdbapis.objs.pagination.TMDbList(self._tmdb, value)
elif value_type == "movie_reviews":
return tmdbapis.objs.pagination.MovieReviews(self._tmdb, value, key)
elif value_type == "lists":
Expand Down

0 comments on commit 32f5f51

Please sign in to comment.