diff options
author | Jeix <devnull@localhost> | 2010-12-12 21:29:39 +0100 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-12-12 21:29:39 +0100 |
commit | f0e3226d5177fca52c15d12f37a66459150c28ab (patch) | |
tree | 81892db22ecc4b1167b247d0d0ead19eee1209e5 /module/plugins/hoster/UploadingCom.py | |
parent | missing files... (diff) | |
download | pyload-f0e3226d5177fca52c15d12f37a66459150c28ab.tar.xz |
Chat interfaces (xmpp/irc): push/pull feature
Diffstat (limited to 'module/plugins/hoster/UploadingCom.py')
-rw-r--r-- | module/plugins/hoster/UploadingCom.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/hoster/UploadingCom.py b/module/plugins/hoster/UploadingCom.py index 4e3e8a06c..70c54e7ce 100644 --- a/module/plugins/hoster/UploadingCom.py +++ b/module/plugins/hoster/UploadingCom.py @@ -6,6 +6,8 @@ from time import time from module.plugins.Hoster import Hoster
+def timestamp():
+ return int(time()*1000)
class UploadingCom(Hoster):
__name__ = "UploadingCom"
@@ -69,10 +71,10 @@ class UploadingCom(Hoster): postData['pass'] = 'undefined'
if r'var captcha_src' in self.html[1]:
- captcha_url = "http://uploading.com/general/captcha/download%s/?ts=%d" % (self.fileid, time()*1000)
+ captcha_url = "http://uploading.com/general/captcha/download%s/?ts=%d" % (self.fileid, timestamp())
postData['captcha_code'] = self.decryptCaptcha(captcha_url)
- self.html[2] = self.load('http://uploading.com/files/get/?JsHttpRequest=%d-xml' % (time()*1000), post=postData)
+ self.html[2] = self.load('http://uploading.com/files/get/?JsHttpRequest=%d-xml' % timestamp(), post=postData)
url = re.search(r'"link"\s*:\s*"(.*?)"', self.html[2])
if url:
return url.group(1).replace("\\/", "/")
|