summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-28 01:59:01 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-28 01:59:01 +0100
commit589121e80835c63aea0880a53c6678de5c31c16e (patch)
treea5acb58c9b06dd80a46cec888520559d115733c3 /module/plugins/hooks
parent[UlozTo] Update hoster (diff)
downloadpyload-589121e80835c63aea0880a53c6678de5c31c16e.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/DeleteFinished.py5
-rw-r--r--module/plugins/hooks/ExtractArchive.py2
-rw-r--r--module/plugins/hooks/MultishareCz.py2
3 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/hooks/DeleteFinished.py b/module/plugins/hooks/DeleteFinished.py
index 75cb33e96..bde4ca259 100644
--- a/module/plugins/hooks/DeleteFinished.py
+++ b/module/plugins/hooks/DeleteFinished.py
@@ -9,9 +9,8 @@ class DeleteFinished(Hook):
__type__ = "hook"
__version__ = "1.12"
- __config__ = [("activated" , "bool", "Activated" , "False"),
- ("interval" , "int" , "Delete every (hours)" , "72" ),
- ("deloffline", "bool", "Delete packages with offline links", "False")]
+ __config__ = [("interval" , "int" , "Check interval in hours" , 72 ),
+ ("deloffline", "bool", "Delete package with offline links", False)]
__description__ = """Automatically delete all finished packages from queue"""
__license__ = "GPLv3"
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index c5f842fdd..8c40667c2 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -175,7 +175,7 @@ class ExtractArchive(Hook):
print_exc()
if self.extractors:
- self.logInfo(_("Activated") + " " + "|".join("%s %s" % (Extractor.__name__,Extractor.VERSION) for Extractor in self.extractors))
+ self.logInfo(_("Activated") + " " + "|".join("%s %s" % (Extractor.__name__, Extractor.VERSION) for Extractor in self.extractors))
self.extractQueued() #: Resume unfinished extractions
else:
self.logInfo(_("No Extract plugins activated"))
diff --git a/module/plugins/hooks/MultishareCz.py b/module/plugins/hooks/MultishareCz.py
index e696d3fef..6ead88c34 100644
--- a/module/plugins/hooks/MultishareCz.py
+++ b/module/plugins/hooks/MultishareCz.py
@@ -21,7 +21,7 @@ class MultishareCz(MultiHook):
__authors__ = [("zoidberg", "zoidberg@mujmail.cz")]
- HOSTER_PATTERN = r'<img class="logo-shareserveru"[^>]*?alt="([^"]+)"></td>\s*<td class="stav">[^>]*?alt="OK"'
+ HOSTER_PATTERN = r'<img class="logo-shareserveru"[^>]*?alt="(.+?)"></td>\s*<td class="stav">[^>]*?alt="OK"'
def getHosters(self):