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