summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Hoster.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal/Hoster.py')
-rw-r--r--module/plugins/internal/Hoster.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py
index 13d7afad8..8f76b6c45 100644
--- a/module/plugins/internal/Hoster.py
+++ b/module/plugins/internal/Hoster.py
@@ -13,7 +13,7 @@ from module.plugins.internal.utils import encode, exists, fixurl, fs_join, parse
class Hoster(Base):
__name__ = "Hoster"
__type__ = "hoster"
- __version__ = "0.39"
+ __version__ = "0.40"
__status__ = "testing"
__pattern__ = r'^unmatchable$'
@@ -98,7 +98,7 @@ class Hoster(Base):
self.restart(premium=False)
else:
- raise Fail(e)
+ raise Fail(str(e))
def isdownload(self, url, resume=None, redirect=True):
@@ -176,16 +176,11 @@ class Hoster(Base):
self.log_debug("DOWNLOAD URL " + url,
*["%s=%s" % (key, val) for key, val in locals().items() if key not in ("self", "url", "_[1]")])
- dl_url = self.isdownload(url, resume)
+ dl_url = self.fixurl(url)
dl_basename = parse_name(self.pyfile.name)
self.pyfile.name = dl_basename
- if not dl_url:
- self.error("Invalid download url")
-
-
-
self.captcha.correct()
if self.pyload.config.get("download", "skip_existing"):