summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleCrypter.py
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-02 00:37:43 +0100
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-02 00:37:43 +0100
commit7ab16b360739c4754c954ceb54b226ab0a30c215 (patch)
treec7d522cfe574f43ebb862d51f3693cd974cde04f /module/plugins/internal/SimpleCrypter.py
parent[ExternalScripts] fix #2251 + much more (diff)
downloadpyload-7ab16b360739c4754c954ceb54b226ab0a30c215.tar.xz
"is" is evil
Diffstat (limited to 'module/plugins/internal/SimpleCrypter.py')
-rw-r--r--module/plugins/internal/SimpleCrypter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index d8bb7ad3c..0cd343426 100644
--- a/module/plugins/internal/SimpleCrypter.py
+++ b/module/plugins/internal/SimpleCrypter.py
@@ -11,7 +11,7 @@ from module.plugins.internal.misc import parse_name, replace_patterns
class SimpleCrypter(Crypter):
__name__ = "SimpleCrypter"
__type__ = "crypter"
- __version__ = "0.82"
+ __version__ = "0.83"
__status__ = "testing"
__pattern__ = r'^unmatchable$'
@@ -90,12 +90,12 @@ class SimpleCrypter(Crypter):
info.update(cls.api_info(url))
- if not html and info['status'] is not 2:
+ if not html and info['status'] != 2:
if not url:
info['error'] = "missing url"
info['status'] = 1
- elif info['status'] is 3:
+ elif info['status'] == 3:
try:
html = get_url(url, cookies=cls.COOKIES, decode=cls.TEXT_ENCODING)