summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/NowDownloadSx.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/NowDownloadSx.py')
-rw-r--r--module/plugins/hoster/NowDownloadSx.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/module/plugins/hoster/NowDownloadSx.py b/module/plugins/hoster/NowDownloadSx.py
index 5aadd0b3f..73b0efeaa 100644
--- a/module/plugins/hoster/NowDownloadSx.py
+++ b/module/plugins/hoster/NowDownloadSx.py
@@ -44,7 +44,7 @@ class NowDownloadSx(SimpleHoster):
self.error()
m = re.search(self.WAIT_PATTERN, self.html)
- if m:
+ if m is not None:
wait = int(m.group(1))
else:
wait = 60
@@ -56,10 +56,8 @@ class NowDownloadSx(SimpleHoster):
self.html = self.load(baseurl + str(continuelink.group(1)))
m = re.search(self.LINK_FREE_PATTERN, self.html)
- if m is None:
- self.error(_("Download link not found"))
-
- self.link = m.group(1)
+ if m is not None:
+ self.link = m.group(1)
getInfo = create_getInfo(NowDownloadSx)