summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/SkipRev.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-15 21:06:10 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:38:26 +0200
commit5a139055ae658d3a05cbb658cbd66aeae0d01db5 (patch)
treeb283d2f470fe2a4115474959e4982a59bc686067 /module/plugins/hooks/SkipRev.py
parentMerge pull request #1537 from GammaC0de/patch-1 (diff)
downloadpyload-5a139055ae658d3a05cbb658cbd66aeae0d01db5.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks/SkipRev.py')
-rw-r--r--module/plugins/hooks/SkipRev.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/SkipRev.py b/module/plugins/hooks/SkipRev.py
index da9f24883..0457f9b55 100644
--- a/module/plugins/hooks/SkipRev.py
+++ b/module/plugins/hooks/SkipRev.py
@@ -59,7 +59,7 @@ class SkipRev(Hook):
link.order)
- def downloadPreparing(self, pyfile):
+ def download_preparing(self, pyfile):
name = self._name(pyfile)
if pyfile.statusname is _("unskipped") or not name.endswith(".rev") or not ".part" in name:
@@ -85,7 +85,7 @@ class SkipRev(Hook):
pyfile.plugin.setup = MethodType(self._setup, pyfile.plugin)
- def downloadFailed(self, pyfile):
+ def download_failed(self, pyfile):
#: Check if pyfile is still "failed",
# maybe might has been restarted in meantime
if pyfile.status != 8 or pyfile.name.rsplit('.', 1)[-1].strip() not in ("rar", "rev"):