Skip to content

Releases: fuzeman/trakt.py

2.6.1

19 May 03:06
Compare
Choose a tag to compare

Changed

  • Updated request error messages

Fixed

  • Authorization tokens generated with device authentication wouldn't refresh correctly

2.6.0

15 Apr 05:17
Compare
Choose a tag to compare

Added

  • Trakt['oauth/device'] (see examples/authentication/device.py for usage details)
  • Trakt['shows'].seasons() now supports the extended="episodes" parameter
  • Pagination can now be enabled with pagination=True, warnings will be displayed if you ignore pagination responses

Changed

  • Moved the Trakt['oauth'].pin_url() method to Trakt['oauth/pin'].url(), the old method still works but will display a deprecation warning

Fixed

  • Issue retrieving lists by users with the . character in their usernames

2.5.2

18 Feb 21:12
Compare
Choose a tag to compare

Added

  • in_watchlist property to Movie, Show, Season and Episode objects (#45)
  • Trakt.site_url setter to override automatic detection
  • HttpClient now supports direct calls (#43)

Changed

  • Tests are now included in builds, but are excluded from installations

2.5.1

25 Sep 00:18
Compare
Choose a tag to compare

Fixed

  • Issue installing trakt.py when "six" hasn't been installed yet (#40, #41)

2.5.0

24 Sep 11:17
Compare
Choose a tag to compare

Added

  • Trakt['users'].likes() method
  • CustomList.items() method
  • Comment object
  • Media.index attribute (list item position/rank)
  • Basic documentation generation (#29)
  • NullHandler to the logger to avoid "No handler found" warnings (#33)

Changed

  • 'movies' and 'shows' interface methods to support the exceptions=True parameter (#32)
  • Interface.get_data() to only parse the response body if the request is successful (#32)

Fixed

  • TypeError was raised in SummaryMapper if the request failed (#30, #31)
  • Constructing "Special" episodes could raise an AttributeError (#38, #39)
  • Media._update() "images" attribute
  • Issue serializing List objects

2.4.1

12 Sep 10:19
Compare
Choose a tag to compare

Fixed

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

2.4.0

09 Jul 02:15
Compare
Choose a tag to compare

Added

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

Changed

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

2.3.0

11 Apr 02:58
Compare
Choose a tag to compare

Changes

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

Fixed

  • Trakt['oauth'] "_url" methods could raise an exception in some cases

2.2.0

01 Apr 11:37
Compare
Choose a tag to compare

Changes

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

Fixed

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

2.1.1

06 Feb 04:06
Compare
Choose a tag to compare

Changes

  • Updated to use the new v2 API endpoint (api-v2launch.trakt.tv)
  • Episode and Movie 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