コード例 #1
0
ファイル: morethantv.py プロジェクト: talenddev/SiCKRAGE
    def _checkAuth(self):

        if not self.username or not self.password:
            raise AuthException("Your authentication credentials for " +
                                self.name + " are missing, check your config.")

        return True
コード例 #2
0
ファイル: btn.py プロジェクト: tioxxx/SiCKRAGE-1
    def _checkAuthFromData(self, parsedJSON):

        if parsedJSON is None:
            return self._checkAuth()

        if 'api-error' in parsedJSON:
            sickrage.srLogger.debug(
                "Incorrect authentication credentials: % s" %
                parsedJSON['api-error'])
            raise AuthException("Your authentication credentials for " +
                                self.name +
                                " are incorrect, check your config.")

        return True
コード例 #3
0
ファイル: titansoftv.py プロジェクト: tioxxx/SiCKRAGE-1
    def _checkAuth(self):
        if not self.api_key:
            raise AuthException('Your authentication credentials for ' +
                                self.name + ' are missing, check your config.')

        return True
コード例 #4
0
ファイル: tvchaosuk.py プロジェクト: tioxxx/SiCKRAGE-1
    def _checkAuth(self):
        if self.username and self.password:
            return True

        raise AuthException('Your authentication credentials for ' +
                            self.name + ' are missing, check your config.')