summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-14 16:11:16 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 21:20:16 +0100
commitf9e57022de88730da643f5fb4efe5599c879c6ad (patch)
treeba5d6e2db1bb4c85c1e482330cafec8d53801871 /module/plugins
parentUpdate captchas (diff)
downloadpyload-f9e57022de88730da643f5fb4efe5599c879c6ad.tar.xz
[accounts] Strict comparison for numbers
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/accounts/FilecloudIo.py2
-rw-r--r--module/plugins/accounts/OboomCom.py2
-rw-r--r--module/plugins/accounts/OverLoadMe.py2
-rw-r--r--module/plugins/accounts/PremiumizeMe.py4
-rw-r--r--module/plugins/accounts/RapidgatorNet.py4
5 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/accounts/FilecloudIo.py b/module/plugins/accounts/FilecloudIo.py
index ac5837d1c..65167e176 100644
--- a/module/plugins/accounts/FilecloudIo.py
+++ b/module/plugins/accounts/FilecloudIo.py
@@ -36,7 +36,7 @@ class FilecloudIo(Account):
post={'akey': akey})
rep = json.loads(rep)
- if rep['is_premium'] == 1:
+ if rep['is_premium'] is 1:
return {'validuntil': float(rep['premium_until']), 'trafficleft': -1}
else:
return {'premium': False}
diff --git a/module/plugins/accounts/OboomCom.py b/module/plugins/accounts/OboomCom.py
index 9758a6dfc..eeb2b1fd4 100644
--- a/module/plugins/accounts/OboomCom.py
+++ b/module/plugins/accounts/OboomCom.py
@@ -39,7 +39,7 @@ class OboomCom(Account):
get={'auth': user,
'pass': pbkdf2}))
- if result[0] != 200:
+ if result[0] is not 200:
self.log_warning(_("Failed to log in: %s") % result[1])
self.fail_login()
diff --git a/module/plugins/accounts/OverLoadMe.py b/module/plugins/accounts/OverLoadMe.py
index 1c72f39bd..1f12fde83 100644
--- a/module/plugins/accounts/OverLoadMe.py
+++ b/module/plugins/accounts/OverLoadMe.py
@@ -47,5 +47,5 @@ class OverLoadMe(MultiAccount):
data = json.loads(jsondata)
- if data['err'] == 1:
+ if data['err'] is 1:
self.fail_login()
diff --git a/module/plugins/accounts/PremiumizeMe.py b/module/plugins/accounts/PremiumizeMe.py
index bd7333843..66ecfb214 100644
--- a/module/plugins/accounts/PremiumizeMe.py
+++ b/module/plugins/accounts/PremiumizeMe.py
@@ -29,7 +29,7 @@ class PremiumizeMe(MultiAccount):
data = json.loads(answer)
#: If account is not valid thera are no hosters available
- if data['status'] != 200:
+ if data['status'] is not 200:
return []
#: Extract hosters from json file
@@ -56,7 +56,7 @@ class PremiumizeMe(MultiAccount):
status = self.get_account_status(user, password)
#: Check if user and password are valid
- if status['status'] != 200:
+ if status['status'] is not 200:
self.fail_login()
diff --git a/module/plugins/accounts/RapidgatorNet.py b/module/plugins/accounts/RapidgatorNet.py
index d24bba969..e1f194afe 100644
--- a/module/plugins/accounts/RapidgatorNet.py
+++ b/module/plugins/accounts/RapidgatorNet.py
@@ -36,7 +36,7 @@ class RapidgatorNet(Account):
jso = json.loads(html)
- if jso['response_status'] == 200:
+ if jso['response_status'] is 200:
if "reset_in" in jso['response']:
self._schedule_refresh(user, jso['response']['reset_in'])
@@ -65,7 +65,7 @@ class RapidgatorNet(Account):
jso = json.loads(html)
- if jso['response_status'] == 200:
+ if jso['response_status'] is 200:
data['sid'] = str(jso['response']['session_id'])
return
else: