Trakt.py

Latest version: v4.4.0

Safety actively analyzes 629004 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 8

2.4.1

------------------
**Fixed**

- Issue where the "_client" attribute on objects was being serialized
- Issue installing trakt.py when "arrow" isn't available yet

2.4.0

------------------
**Added**

- :code:`trending()` method to :code:`Trakt['shows']` and :code:`Trakt['movies']` interfaces (23)
- :code:`seasons()` and :code:`episodes()` methods to the :code:`Trakt['sync/watchlist']` interface (26)
- Custom lists support (:code:`Trakt['users/*/lists']`, :code:`Trakt['users/*/lists/*']`) (26)
- :code:`__eq__()` method on the :code:`Rating` class
- :code:`proxies` attribute on :code:`Trakt.http`

**Changed**

- :code:`datetime` objects are now returned offset-aware **(make sure you use offset-aware `datetime` objects when comparing timestamps now)**
- Force requests to use :code:`ssl.PROTOCOL_TLSv1` connections for https:// (#25)
- Return site url from :code:`Trakt['oauth'].authorize_url()`
- Use season number from parent when one isn't defined in the episode

2.3.0

------------------
**Changes**

- Added support for PIN authentication
- Added automatic OAuth token refreshing *(see "examples/pin.py" for an example)*
- Added :code:`Trakt.configuration.oauth.from_response()` configuration method
- Added tests for the :code:`Trakt['oauth']` interface
- Added tests to ensure authentication headers are being sent
- :code:`Trakt['oauth']` methods now raise an exception if you are missing required configuration parameters
- :code:`Trakt['oauth'].token()` method has been renamed to :code:`Trakt['oauth'].token_exchange()` *(old method is still present for compatibility)*

**Fixed**

- :code:`Trakt['oauth']` "_url" methods could raise an exception in some cases

2.2.0

------------------
**Changes**

- Added unit tests (with travis-ci.org and coveralls.io integrations)
- Added :code:`/movies`, :code:`/shows`, :code:`/search` and :code:`/users/settings` interfaces
- Added parent properties ("show", "season")
- Added "images", "overview" and "score" properties to the :code:`Media` class
- Added "last_watched_at" property to movies and episodes
- Updated :code:`/sync/playback` interface (to include type filtering)
- "progress" and "paused_at" properties are now included in :code:`to_dict()`

**Fixed**

- "year" property could be returned as a string in some cases
- Catch an exception in :code:`trakt.media_mapper`
- Catch a case where :code:`Interface.get_data()` can raise a :code:`KeyError: 'content-type'` exception

2.1.1

------------------
**Changes**

- Updated to use the new v2 API endpoint (api-v2launch.trakt.tv)
- Episode and Movie :code:`to_dict()` method now always returns "plays" as an integer
- Added "http.retry_sleep" and "http.timeout" configuration parameters
- Setup travis/coveralls services

**Fixed**

- Python 3.x compatibility issues

2.1.0

------------------
**Changes**

- Added "exceptions" and "parse" parameter to `Interface.get_data()`
- Added additional error messages (502, 504, 520)
- Renamed media object `to_info()` method to `to_identifier()`
- Added new `to_dict()` method which returns a dictionary representation of the media object
- Request retrying (on 5xx errors) can now be enabled with `Trakt.configuration.http(retry=True)`
- requests/urllib3 now retries requests on connection errors (default: 3 retries)

**Fixed**

- Thread synchronization issue with `trakt.core.configuration`
- [/sync] last_activities() used an incorrect path

Page 5 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.