コード例 #1
0
ファイル: notifiers.py プロジェクト: nickhdamico/py
 def test_notify(self):
     return self._notifyTwitter("This is a test notification from PlexPy at " + helpers.now(), force=True)
コード例 #2
0
ファイル: logger.py プロジェクト: lashkari/plexpy
    def emit(self, record):
        message = self.format(record)
        message = message.replace("\n", "<br />")

        plexpy.LOG_LIST.insert(0, (helpers.now(), message, record.levelname, record.threadName))
コード例 #3
0
ファイル: notifiers.py プロジェクト: nickhdamico/py
 def notify_snatch(self, title):
     if plexpy.CONFIG.TWITTER_ONSNATCH:
         self._notifyTwitter(common.notifyStrings[common.NOTIFY_SNATCH] + ': ' + title + ' at ' + helpers.now())
コード例 #4
0
ファイル: notifiers.py プロジェクト: nickhdamico/py
 def notify_download(self, title):
     if plexpy.CONFIG.TWITTER_ENABLED:
         self._notifyTwitter(common.notifyStrings[common.NOTIFY_DOWNLOAD] + ': ' + title + ' at ' + helpers.now())
コード例 #5
0
ファイル: logger.py プロジェクト: zobe123/plexpy
    def emit(self, record):
        message = self.format(record)
        message = message.replace("\n", "<br />")

        plexpy.LOG_LIST.insert(
            0, (helpers.now(), message, record.levelname, record.threadName))
コード例 #6
0
 def test_notify(self):
     return self._notifyTwitter(
         "This is a test notification from PlexPy at " + helpers.now(),
         force=True)
コード例 #7
0
 def notify_download(self, title):
     if plexpy.CONFIG.TWITTER_ENABLED:
         self._notifyTwitter(common.notifyStrings[common.NOTIFY_DOWNLOAD] +
                             ': ' + title + ' at ' + helpers.now())
コード例 #8
0
 def notify_snatch(self, title):
     if plexpy.CONFIG.TWITTER_ONSNATCH:
         self._notifyTwitter(common.notifyStrings[common.NOTIFY_SNATCH] +
                             ': ' + title + ' at ' + helpers.now())
コード例 #9
0
ファイル: notifiers.py プロジェクト: Deathedit/plexpy
 def test_notify(self):
     return self._send_tweet("This is a test notification from PlexPy at " + helpers.now())