Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix URL used for rating Movies.

  • Loading branch information...
commit f652982d6341805a6d2157df026cb35994da345f 1 parent 45fd261
@wagnerrp authored
Showing with 4 additions and 3 deletions.
  1. +1 −1  setup.py
  2. +3 −2 tmdb3/tmdb_api.py
View
2  setup.py
@@ -4,7 +4,7 @@
setup(
name='tmdb3',
- version='0.6.12',
+ version='0.6.13',
description='TheMovieDB.org APIv3 interface',
long_description="Object-oriented interface to TheMovieDB.org's v3 API.",
packages=['tmdb3']
View
5 tmdb3/tmdb_api.py
@@ -22,7 +22,7 @@
Preliminary API specifications can be found at
http://help.themoviedb.org/kb/api/about-3"""
-__version__="v0.6.12"
+__version__="v0.6.13"
# 0.1.0 Initial development
# 0.2.0 Add caching mechanism for API queries
# 0.2.1 Temporary work around for broken search paging
@@ -55,6 +55,7 @@
# 0.6.10 Add upcoming movie classmethod
# 0.6.11 Fix URL for top rated Movie query
# 0.6.12 Add support for Movie watchlist query and editing
+# 0.6.13 Fix URL for rating Movies
from request import set_key, Request
from util import Datapoint, Datalist, Datadict, Element, NameRepr, SearchRepr
@@ -546,7 +547,7 @@ def setFavorite(self, value):
def setRating(self, value):
if not (0 <= value <= 10):
raise TMDBError("Ratings must be between '0' and '10'.")
- req = Request('movie/{0}/favorite'.format(self.id), \
+ req = Request('movie/{0}/rating'.format(self.id), \
session_id=self._session.sessionid)
req.lifetime = 0
req.add_data({'value':value})
Please sign in to comment.
Something went wrong with that request. Please try again.