示例#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)
示例#2
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(store=ratings)
     return findMovieMatchInList(movieId, ratings, idType)