def getEpisodeRatingForUser(self, showId, season, episode, idType='tvdb'): ratings = {} with Trakt.configuration.oauth.from_response(self.authorization): with Trakt.configuration.http(retry=True): Trakt['sync/ratings'].episodes(ratings) return findEpisodeMatchInList(showId, season, episode, ratings, idType)
def getEpisodeRatingForUser(self, id, season, episode): ratings = {} with Trakt.configuration.auth(self.__username, self.__token): Trakt['sync/ratings'].episodes(ratings) return findEpisodeMatchInList(id, season, episode, ratings)
def getEpisodeRatingForUser(self, tvdbId, season, episode): ratings = {} with Trakt.configuration.auth(self.__username, self.__token): with Trakt.configuration.http(retry=True): Trakt['sync/ratings'].episodes(ratings) return findEpisodeMatchInList(tvdbId, season, episode, ratings)