summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UpstoreNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-19 00:05:58 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-19 00:05:58 +0200
commitdad722ac7255640e7e0541c4094a4d2e4de79cd3 (patch)
tree893a08e83fb9b465cd0ecf0b0315a5e820b06b06 /module/plugins/hoster/UpstoreNet.py
parent[Hoster] Fix the http request issue (diff)
downloadpyload-dad722ac7255640e7e0541c4094a4d2e4de79cd3.tar.xz
Code cosmetics (2)
Diffstat (limited to 'module/plugins/hoster/UpstoreNet.py')
-rw-r--r--module/plugins/hoster/UpstoreNet.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/UpstoreNet.py b/module/plugins/hoster/UpstoreNet.py
index f628e1db3..7c014d53f 100644
--- a/module/plugins/hoster/UpstoreNet.py
+++ b/module/plugins/hoster/UpstoreNet.py
@@ -28,21 +28,21 @@ class UpstoreNet(SimpleHoster):
def handle_free(self, pyfile):
- # STAGE 1: get link to continue
+ #: STAGE 1: get link to continue
m = re.search(self.CHASH_PATTERN, self.html)
if m is None:
self.error(_("CHASH_PATTERN not found"))
chash = m.group(1)
self.log_debug("Read hash " + chash)
- #: continue to stage2
+ #: Continue to stage2
post_data = {'hash': chash, 'free': 'Slow download'}
self.html = self.load(pyfile.url, post=post_data)
- # STAGE 2: solv captcha and wait
- # first get the infos we need: recaptcha key and wait time
+ #: STAGE 2: solv captcha and wait
+ #: First get the infos we need: recaptcha key and wait time
recaptcha = ReCaptcha(self)
- #: try the captcha 5 times
+ #: Try the captcha 5 times
for i in xrange(5):
m = re.search(self.WAIT_PATTERN, self.html)
if m is None:
@@ -59,7 +59,7 @@ class UpstoreNet(SimpleHoster):
self.html = self.load(pyfile.url, post=post_data)
- # STAGE 3: get direct link
+ #: STAGE 3: get direct link
m = re.search(self.LINK_FREE_PATTERN, self.html, re.S)
if m:
break