Ejemplo n.º 1
0
 def getMovieRatingForUser(self, movieId, idType='imdb'):
     ratings = {}
     with Trakt.configuration.oauth.from_response(self.authorization):
         with Trakt.configuration.http(retry=True):
             Trakt['sync/ratings'].movies(ratings)
     return findMovieMatchInList(movieId, ratings, idType)
Ejemplo n.º 2
0
 def getMovieRatingForUser(self, id):
     ratings = {}
     with Trakt.configuration.auth(self.__username, self.__token):
         Trakt['sync/ratings'].movies(ratings)
     return findMovieMatchInList(id, ratings)
Ejemplo n.º 3
0
 def getMovieRatingForUser(self, movieId, idType='imdb'):
     ratings = {}
     with Trakt.configuration.oauth.from_response(self.authorization):
         with Trakt.configuration.http(retry=True):
             Trakt['sync/ratings'].movies(ratings)
     return findMovieMatchInList(movieId, ratings, idType)
Ejemplo n.º 4
0
	def getMovieRatingForUser(self, imdbId):
		ratings = {}
		with Trakt.configuration.auth(self.__username, self.__token):
			with Trakt.configuration.http(retry=True):
				Trakt['sync/ratings'].movies(ratings)
		return findMovieMatchInList(imdbId, ratings)