summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/NosuploadCom.py
diff options
context:
space:
mode:
authorGravatar lazlev <lazlev@yopmail.com> 2015-08-09 00:50:54 +0200
committerGravatar lazlev <lazlev@yopmail.com> 2015-08-09 00:50:54 +0200
commitb0ef3f1673e1930916604bb1264ca3a38414bc8d (patch)
treec97936e4d2a4cd6eb1072c65c8a08a7d18816b18 /module/plugins/hoster/NosuploadCom.py
parent[XFileSharingPro][XFileSharingProFolder] Added default __pattern__ (diff)
parentFix https://github.com/pyload/pyload/issues/1707 (diff)
downloadpyload-b0ef3f1673e1930916604bb1264ca3a38414bc8d.tar.xz
Merge pull request #1 from pyload/stable
sync with stable
Diffstat (limited to 'module/plugins/hoster/NosuploadCom.py')
-rw-r--r--module/plugins/hoster/NosuploadCom.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/module/plugins/hoster/NosuploadCom.py b/module/plugins/hoster/NosuploadCom.py
index 241ee3a29..7de26f3fb 100644
--- a/module/plugins/hoster/NosuploadCom.py
+++ b/module/plugins/hoster/NosuploadCom.py
@@ -8,7 +8,8 @@ from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo
class NosuploadCom(XFSHoster):
__name__ = "NosuploadCom"
__type__ = "hoster"
- __version__ = "0.31"
+ __version__ = "0.32"
+ __status__ = "testing"
__pattern__ = r'http://(?:www\.)?nosupload\.com/\?d=\w{12}'
@@ -23,19 +24,19 @@ class NosuploadCom(XFSHoster):
WAIT_PATTERN = r'Please wait.*?>(\d+)</span>'
- def getDownloadLink(self):
- # stage1: press the "Free Download" button
- data = self.getPostParameters()
- self.html = self.load(self.pyfile.url, post=data, decode=True)
+ def get_download_link(self):
+ #: stage1: press the "Free Download" button
+ data = self.get_post_parameters()
+ self.html = self.load(self.pyfile.url, post=data)
- # stage2: wait some time and press the "Download File" button
- data = self.getPostParameters()
+ #: stage2: wait some time and press the "Download File" button
+ data = self.get_post_parameters()
wait_time = re.search(self.WAIT_PATTERN, self.html, re.M | re.S).group(1)
- self.logDebug("Hoster told us to wait %s seconds" % wait_time)
+ self.log_debug("Hoster told us to wait %s seconds" % wait_time)
self.wait(wait_time)
- self.html = self.load(self.pyfile.url, post=data, decode=True)
+ self.html = self.load(self.pyfile.url, post=data)
- # stage3: get the download link
+ #: stage3: get the download link
return re.search(self.LINK_PATTERN, self.html, re.S).group(1)