summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/FilecloudIo.py4
-rw-r--r--module/plugins/accounts/OboomCom.py2
-rw-r--r--module/plugins/accounts/OverLoadMe.py4
-rw-r--r--module/plugins/accounts/PremiumizeMe.py6
-rw-r--r--module/plugins/accounts/RapidgatorNet.py4
5 files changed, 10 insertions, 10 deletions
diff --git a/module/plugins/accounts/FilecloudIo.py b/module/plugins/accounts/FilecloudIo.py
index 65167e176..3e3d3c51e 100644
--- a/module/plugins/accounts/FilecloudIo.py
+++ b/module/plugins/accounts/FilecloudIo.py
@@ -7,7 +7,7 @@ from module.plugins.internal.misc import json, set_cookie
class FilecloudIo(Account):
__name__ = "FilecloudIo"
__type__ = "account"
- __version__ = "0.11"
+ __version__ = "0.12"
__status__ = "testing"
__description__ = """FilecloudIo account plugin"""
@@ -36,7 +36,7 @@ class FilecloudIo(Account):
post={'akey': akey})
rep = json.loads(rep)
- if rep['is_premium'] is 1:
+ if rep['is_premium'] == 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 cb3342e49..f6e9ed129 100644
--- a/module/plugins/accounts/OboomCom.py
+++ b/module/plugins/accounts/OboomCom.py
@@ -40,7 +40,7 @@ class OboomCom(Account):
'pass': pbkdf2})
result = json.loads(html)
- if result[0] is not 200:
+ if result[0] != 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 0155d4efc..ae5476f87 100644
--- a/module/plugins/accounts/OverLoadMe.py
+++ b/module/plugins/accounts/OverLoadMe.py
@@ -7,7 +7,7 @@ from module.plugins.internal.misc import json
class OverLoadMe(MultiAccount):
__name__ = "OverLoadMe"
__type__ = "account"
- __version__ = "0.10"
+ __version__ = "0.11"
__status__ = "testing"
__config__ = [("mh_mode" , "all;listed;unlisted", "Filter hosters to use" , "all"),
@@ -47,5 +47,5 @@ class OverLoadMe(MultiAccount):
data = json.loads(html)
- if data['err'] is 1:
+ if data['err'] == 1:
self.fail_login()
diff --git a/module/plugins/accounts/PremiumizeMe.py b/module/plugins/accounts/PremiumizeMe.py
index 66ecfb214..2774f267b 100644
--- a/module/plugins/accounts/PremiumizeMe.py
+++ b/module/plugins/accounts/PremiumizeMe.py
@@ -7,7 +7,7 @@ from module.plugins.internal.misc import json
class PremiumizeMe(MultiAccount):
__name__ = "PremiumizeMe"
__type__ = "account"
- __version__ = "0.23"
+ __version__ = "0.24"
__status__ = "testing"
__config__ = [("mh_mode" , "all;listed;unlisted", "Filter hosters to use" , "all"),
@@ -29,7 +29,7 @@ class PremiumizeMe(MultiAccount):
data = json.loads(answer)
#: If account is not valid thera are no hosters available
- if data['status'] is not 200:
+ if data['status'] != 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'] is not 200:
+ if status['status'] != 200:
self.fail_login()
diff --git a/module/plugins/accounts/RapidgatorNet.py b/module/plugins/accounts/RapidgatorNet.py
index 3057fb34c..3fb2cf928 100644
--- a/module/plugins/accounts/RapidgatorNet.py
+++ b/module/plugins/accounts/RapidgatorNet.py
@@ -36,7 +36,7 @@ class RapidgatorNet(Account):
json_data = json.loads(html)
- if json_data['response_status'] is 200:
+ if json_data['response_status'] == 200:
if "reset_in" in json_data['response']:
self._schedule_refresh(user, json_data['response']['reset_in'])
@@ -65,7 +65,7 @@ class RapidgatorNet(Account):
json_data = json.loads(html)
- if json_data['response_status'] is 200:
+ if json_data['response_status'] == 200:
data['sid'] = str(json_data['response']['session_id'])
return
else: