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.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/module/plugins/hoster/NowDownloadSx.py b/module/plugins/hoster/NowDownloadSx.py
index 876a7bcb5..73b0efeaa 100644
--- a/module/plugins/hoster/NowDownloadSx.py
+++ b/module/plugins/hoster/NowDownloadSx.py
@@ -3,7 +3,6 @@
import re
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
-from module.utils import fixup
class NowDownloadSx(SimpleHoster):
@@ -29,7 +28,7 @@ class NowDownloadSx(SimpleHoster):
WAIT_PATTERN = r'\.countdown\(\{until: \+(\d+),'
LINK_FREE_PATTERN = r'(http://s\d+(?:\.coolcdn\.info|\.mighycdndelivery\.com)/nowdownload/.+?)["\']'
- NAME_REPLACEMENTS = [("&#?\w+;", fixup), (r'<.*?>', '')]
+ NAME_REPLACEMENTS = [(r'<.*?>', '')]
def setup(self):
@@ -45,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
@@ -57,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)