summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/UploadheroCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hoster/UploadheroCom.py')
-rw-r--r--pyload/plugin/hoster/UploadheroCom.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pyload/plugin/hoster/UploadheroCom.py b/pyload/plugin/hoster/UploadheroCom.py
index d1c9fd2c7..4a01d5db0 100644
--- a/pyload/plugin/hoster/UploadheroCom.py
+++ b/pyload/plugin/hoster/UploadheroCom.py
@@ -4,8 +4,7 @@
# http://uploadhero.co/dl/wQBRAVSM
import re
-
-from urlparse import urljoin
+import urlparse
from pyload.plugin.internal.SimpleHoster import SimpleHoster
@@ -44,7 +43,7 @@ class UploadheroCom(SimpleHoster):
if m is None:
self.error(_("Captcha not found"))
- captcha = self.decryptCaptcha(urljoin("http://uploadhero.co", m.group(1)))
+ captcha = self.decryptCaptcha(urlparse.urljoin("http://uploadhero.co", m.group(1)))
self.html = self.load(pyfile.url,
get={"code": captcha})
@@ -58,7 +57,7 @@ class UploadheroCom(SimpleHoster):
def checkErrors(self):
m = re.search(self.IP_BLOCKED_PATTERN, self.html)
if m:
- self.html = self.load(urljoin("http://uploadhero.co", m.group(1)))
+ self.html = self.load(urlparse.urljoin("http://uploadhero.co", m.group(1)))
m = re.search(self.IP_WAIT_PATTERN, self.html)
wait_time = (int(m.group(1)) * 60 + int(m.group(2))) if m else 5 * 60