Example #1
0
 def test_notify(self):
     return self._notifyTwitter("This is a test notification from PlexPy at " + helpers.now(), force=True)
Example #2
0
    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))
Example #3
0
 def notify_snatch(self, title):
     if plexpy.CONFIG.TWITTER_ONSNATCH:
         self._notifyTwitter(common.notifyStrings[common.NOTIFY_SNATCH] + ': ' + title + ' at ' + helpers.now())
Example #4
0
 def notify_download(self, title):
     if plexpy.CONFIG.TWITTER_ENABLED:
         self._notifyTwitter(common.notifyStrings[common.NOTIFY_DOWNLOAD] + ': ' + title + ' at ' + helpers.now())
Example #5
0
    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))
Example #6
0
 def test_notify(self):
     return self._notifyTwitter(
         "This is a test notification from PlexPy at " + helpers.now(),
         force=True)
Example #7
0
 def notify_download(self, title):
     if plexpy.CONFIG.TWITTER_ENABLED:
         self._notifyTwitter(common.notifyStrings[common.NOTIFY_DOWNLOAD] +
                             ': ' + title + ' at ' + helpers.now())
Example #8
0
 def notify_snatch(self, title):
     if plexpy.CONFIG.TWITTER_ONSNATCH:
         self._notifyTwitter(common.notifyStrings[common.NOTIFY_SNATCH] +
                             ': ' + title + ' at ' + helpers.now())
Example #9
0
 def test_notify(self):
     return self._send_tweet("This is a test notification from PlexPy at " + helpers.now())