示例#1
0
 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
 def notify_snatch(self, title):
     if plexpy.CONFIG.TWITTER_ONSNATCH:
         self._notifyTwitter(common.notifyStrings[common.NOTIFY_SNATCH] + ': ' + title + ' at ' + helpers.now())
示例#4
0
 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
 def test_notify(self):
     return self._send_tweet("This is a test notification from PlexPy at " + helpers.now())