Пример #1
0
    def __init__(self, instance='Default'):
        oauth_provider = common.PM.getPluginByIdentifier("de.lad1337.trakt.tv")
        if oauth_provider:
            self.oauth = oauth_provider.oauth
        MediaAdder.__init__(self, instance=instance)

        self.client = None
        if self.oauth and self.oauth.authorized:
            self.client = Client(self.oauth.session)
Пример #2
0
 def __init__(self, instance='Default'):
     Provider.__init__(self, instance=instance)
     self.client = Client()
     if self.oauth.authorized:
         self.client = Client(self.oauth.session)