summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/BypassCaptcha.py1
-rw-r--r--module/plugins/hooks/CaptchaBrotherhood.py1
-rw-r--r--module/plugins/hooks/DeleteFinished.py8
-rw-r--r--module/plugins/hooks/DownloadScheduler.py2
-rw-r--r--module/plugins/hooks/Ev0InFetcher.py2
-rw-r--r--module/plugins/hooks/HotFolder.py1
-rw-r--r--module/plugins/hooks/IRCInterface.py3
-rw-r--r--module/plugins/hooks/ImageTyperz.py1
-rw-r--r--module/plugins/hooks/MultiHome.py1
-rw-r--r--module/plugins/hooks/SimplyPremiumCom.py7
-rw-r--r--module/plugins/hooks/UnSkipOnFail.py4
-rw-r--r--module/plugins/hooks/XMPPInterface.py2
12 files changed, 18 insertions, 15 deletions
diff --git a/module/plugins/hooks/BypassCaptcha.py b/module/plugins/hooks/BypassCaptcha.py
index 1c9c4e722..05cf29500 100644
--- a/module/plugins/hooks/BypassCaptcha.py
+++ b/module/plugins/hooks/BypassCaptcha.py
@@ -27,6 +27,7 @@ PYLOAD_KEY = "4f771155b640970d5607f919a615bdefc67e7d32"
class BypassCaptchaException(Exception):
+
def __init__(self, err):
self.err = err
diff --git a/module/plugins/hooks/CaptchaBrotherhood.py b/module/plugins/hooks/CaptchaBrotherhood.py
index 86768b76b..b413bdb59 100644
--- a/module/plugins/hooks/CaptchaBrotherhood.py
+++ b/module/plugins/hooks/CaptchaBrotherhood.py
@@ -29,6 +29,7 @@ from module.plugins.Hook import Hook
class CaptchaBrotherhoodException(Exception):
+
def __init__(self, err):
self.err = err
diff --git a/module/plugins/hooks/DeleteFinished.py b/module/plugins/hooks/DeleteFinished.py
index 48b262392..1c80facc9 100644
--- a/module/plugins/hooks/DeleteFinished.py
+++ b/module/plugins/hooks/DeleteFinished.py
@@ -20,8 +20,8 @@ from module.plugins.Hook import Hook
class DeleteFinished(Hook):
- __name__ = 'DeleteFinished'
- __version__ = '1.09'
+ __name__ = "DeleteFinished"
+ __version__ = "1.09"
__type__ = "hook"
__config__ = [('activated', 'bool', 'Activated', 'False'),
@@ -29,8 +29,8 @@ class DeleteFinished(Hook):
('deloffline', 'bool', 'Delete packages with offline links', 'False')]
__description__ = """Automatically delete all finished packages from queue"""
- __author_name__ = ('Walter Purcaro')
- __author_mail__ = ('vuolter@gmail.com')
+ __author_name__ = "Walter Purcaro"
+ __author_mail__ = "vuolter@gmail.com"
## overwritten methods ##
diff --git a/module/plugins/hooks/DownloadScheduler.py b/module/plugins/hooks/DownloadScheduler.py
index 070c0634e..dbc1019e3 100644
--- a/module/plugins/hooks/DownloadScheduler.py
+++ b/module/plugins/hooks/DownloadScheduler.py
@@ -43,7 +43,7 @@ class DownloadScheduler(Hook):
self.updateSchedule()
def updateSchedule(self, schedule=None):
- if schedule is None:
+ if not schedule:
schedule = self.getConfig("timetable")
schedule = re.findall("(\d{1,2}):(\d{2})[\s]*(-?\d+)",
diff --git a/module/plugins/hooks/Ev0InFetcher.py b/module/plugins/hooks/Ev0InFetcher.py
index d2caa19ac..3a98abbf7 100644
--- a/module/plugins/hooks/Ev0InFetcher.py
+++ b/module/plugins/hooks/Ev0InFetcher.py
@@ -57,7 +57,9 @@ class Ev0InFetcher(Hook):
continue
return []
+
def periodical(self):
+
def normalizefiletitle(filename):
filename = filename.replace('.', ' ')
filename = filename.replace('_', ' ')
diff --git a/module/plugins/hooks/HotFolder.py b/module/plugins/hooks/HotFolder.py
index bd57712af..08ef93812 100644
--- a/module/plugins/hooks/HotFolder.py
+++ b/module/plugins/hooks/HotFolder.py
@@ -46,7 +46,6 @@ class HotFolder(Hook):
self.interval = 10
def periodical(self):
-
if not exists(join(self.getConfig("folder"), "finished")):
makedirs(join(self.getConfig("folder"), "finished"))
diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py
index 41ca352a4..7dbe835c7 100644
--- a/module/plugins/hooks/IRCInterface.py
+++ b/module/plugins/hooks/IRCInterface.py
@@ -311,12 +311,10 @@ class IRCInterface(Thread, Hook):
return lines
def event_start(self, args):
-
self.api.unpauseServer()
return ["INFO: Starting downloads."]
def event_stop(self, args):
-
self.api.pauseServer()
return ["INFO: No new downloads will be started."]
@@ -415,6 +413,7 @@ class IRCInterface(Thread, Hook):
class IRCError(Exception):
+
def __init__(self, value):
self.value = value
diff --git a/module/plugins/hooks/ImageTyperz.py b/module/plugins/hooks/ImageTyperz.py
index 3c23f9567..794db3913 100644
--- a/module/plugins/hooks/ImageTyperz.py
+++ b/module/plugins/hooks/ImageTyperz.py
@@ -25,6 +25,7 @@ from module.plugins.Hook import Hook
class ImageTyperzException(Exception):
+
def __init__(self, err):
self.err = err
diff --git a/module/plugins/hooks/MultiHome.py b/module/plugins/hooks/MultiHome.py
index 5a7e53b0d..31bbbcc9a 100644
--- a/module/plugins/hooks/MultiHome.py
+++ b/module/plugins/hooks/MultiHome.py
@@ -73,6 +73,7 @@ class MultiHome(Hook):
class Interface(object):
+
def __init__(self, adress):
self.adress = adress
self.history = {}
diff --git a/module/plugins/hooks/SimplyPremiumCom.py b/module/plugins/hooks/SimplyPremiumCom.py
index dbba3d1e9..41268e231 100644
--- a/module/plugins/hooks/SimplyPremiumCom.py
+++ b/module/plugins/hooks/SimplyPremiumCom.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-
############################################################################
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Affero General Public License as #
@@ -15,9 +14,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
############################################################################
-from module.plugins.internal.MultiHoster import MultiHoster
-from module.network.RequestFactory import getURL
from module.common.json_layer import json_loads
+from module.network.RequestFactory import getURL
+from module.plugins.internal.MultiHoster import MultiHoster
class SimplyPremiumCom(MultiHoster):
@@ -31,7 +30,7 @@ class SimplyPremiumCom(MultiHoster):
("unloadFailing", "bool", "Revert to standard download if download fails", "False"),
("interval", "int", "Reload interval in hours (0 to disable)", "24")]
- __description__ = """Simply-Premium.Com hook plugin"""
+ __description__ = """Simply-Premium.com hook plugin"""
__author_name__ = "EvolutionClip"
__author_mail__ = "evolutionclip@live.de"
diff --git a/module/plugins/hooks/UnSkipOnFail.py b/module/plugins/hooks/UnSkipOnFail.py
index f25482b79..d40854e99 100644
--- a/module/plugins/hooks/UnSkipOnFail.py
+++ b/module/plugins/hooks/UnSkipOnFail.py
@@ -22,8 +22,8 @@ from module.PyFile import PyFile
class UnSkipOnFail(Hook):
- __name__ = 'UnSkipOnFail'
- __version__ = '0.01'
+ __name__ = "UnSkipOnFail"
+ __version__ = "0.01"
__type__ = "hook"
__config__ = [("activated", "bool", "Activated", True)]
diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py
index 7b179d41a..57a997a4b 100644
--- a/module/plugins/hooks/XMPPInterface.py
+++ b/module/plugins/hooks/XMPPInterface.py
@@ -130,7 +130,7 @@ class XMPPInterface(IRCInterface, JabberClient):
subject = stanza.get_subject()
body = stanza.get_body()
t = stanza.get_type()
- self.logDebug(u'pyLoad XMPP: Message from %s received.' % (unicode(stanza.get_from(), )))
+ self.logDebug(u'pyLoad XMPP: Message from %s received.' % (unicode(stanza.get_from(),)))
self.logDebug(u'pyLoad XMPP: Body: %s Subject: %s Type: %s' % (body, subject, t))
if t == "headline":