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