diff options
author | 2014-07-20 03:25:14 +0200 | |
---|---|---|
committer | 2014-07-20 03:25:14 +0200 | |
commit | 05d258d98dd8c2faf0b769840fa1e3c4acccdce8 (patch) | |
tree | 20d379639d14a2b69deaa9e0376e33312b5bb994 /module/plugins/hoster/UploadedTo.py | |
parent | [ShareRapidCom] Fix https://github.com/pyload/pyload/issues/694 (diff) | |
download | pyload-05d258d98dd8c2faf0b769840fa1e3c4acccdce8.tar.xz |
Fix and improve 5060e4c6374a5116d0d8b02528f910f8c5f8bcf9
Diffstat (limited to 'module/plugins/hoster/UploadedTo.py')
-rw-r--r-- | module/plugins/hoster/UploadedTo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index bfe28f158..2c39a5cf4 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -164,7 +164,7 @@ class UploadedTo(Hoster): #Indirect download self.html = self.load("http://uploaded.net/file/%s" % self.fileID) found = re.search(r'<div class="tfree".*\s*<form method="post" action="(.*?)"', self.html) - if not found: + if found is None: self.fail("Download URL not found. Try to enable direct downloads.") url = found.group(1) print "Premium URL: " + url @@ -178,7 +178,7 @@ class UploadedTo(Hoster): self.retry(max_tries=24, wait_time=5 * 60) found = re.search(r"Current waiting period: <span>(\d+)</span> seconds", self.html) - if not found: + if found is None: self.fail("File not downloadable for free users") self.setWait(int(found.group(1))) |