コード例 #1
0
ファイル: traktapi.py プロジェクト: ineffablebob/script.trakt
 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)