summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/internal
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/internal')
-rw-r--r--pyload/plugin/internal/SimpleHoster.py2
-rw-r--r--pyload/plugin/internal/XFSAccount.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugin/internal/SimpleHoster.py b/pyload/plugin/internal/SimpleHoster.py
index df98c1e67..75970d814 100644
--- a/pyload/plugin/internal/SimpleHoster.py
+++ b/pyload/plugin/internal/SimpleHoster.py
@@ -332,7 +332,7 @@ class SimpleHoster(Hoster):
@classmethod
def getInfo(cls, url="", html=""):
info = cls.apiInfo(url)
- online = False if info['status'] != 2 else True
+ online = info['status'] == 2
try:
info['pattern'] = re.match(cls.__pattern, url).groupdict() #: pattern groups will be saved here
diff --git a/pyload/plugin/internal/XFSAccount.py b/pyload/plugin/internal/XFSAccount.py
index 13c2351ce..d8c5a91f1 100644
--- a/pyload/plugin/internal/XFSAccount.py
+++ b/pyload/plugin/internal/XFSAccount.py
@@ -67,7 +67,7 @@ class XFSAccount(Account):
html = req.load(self.HOSTER_URL, get={'op': "my_account"}, decode=True)
- premium = True if re.search(self.PREMIUM_PATTERN, html) else False
+ premium = re.search(self.PREMIUM_PATTERN, html) is not None
m = re.search(self.VALID_UNTIL_PATTERN, html)
if m: