summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/SkipRev.py
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-10 01:12:35 +0100
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-10 01:12:35 +0100
commit275ecd47f14ebee8309de1e1f13d090ca50c38fe (patch)
treef9c22e6fc16f376fcc6f34df9f86af3a300fbabe /module/plugins/hooks/SkipRev.py
parent[ExternalScripts] Update (diff)
downloadpyload-275ecd47f14ebee8309de1e1f13d090ca50c38fe.tar.xz
"is" is evil (2)
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 c318e3247..24bf610d1 100644
--- a/module/plugins/hooks/SkipRev.py
+++ b/module/plugins/hooks/SkipRev.py
@@ -9,7 +9,7 @@ from module.plugins.internal.Addon import Addon
class SkipRev(Addon):
__name__ = "SkipRev"
__type__ = "hook"
- __version__ = "0.36"
+ __version__ = "0.37"
__status__ = "testing"
__config__ = [("activated", "bool" , "Activated" , False ),
@@ -42,7 +42,7 @@ class SkipRev(Addon):
def download_preparing(self, pyfile):
name = self._name(pyfile)
- if pyfile.statusname is _("unskipped") or not name.endswith(".rev") or not ".part" in name:
+ if pyfile.statusname == "unskipped" or not name.endswith(".rev") or not ".part" in name:
return
revtokeep = -1 if self.config.get('mode') == "Auto" else self.config.get('revtokeep')