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)
def getMovieRatingForUser(self, id): ratings = {} with Trakt.configuration.auth(self.__username, self.__token): Trakt['sync/ratings'].movies(ratings) return findMovieMatchInList(id, ratings)
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)
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)