Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
	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)