summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-01 19:46:11 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-01 19:46:11 +0200
commitee383fe3d45aded7be86d3b06e256c94829614e1 (patch)
tree2307d6577eb117dca831499d1ee72130daa30580 /module
parentMerge pull request #1443 from GammaC0de/patch-1 (diff)
downloadpyload-ee383fe3d45aded7be86d3b06e256c94829614e1.tar.xz
Fix https://github.com/pyload/pyload/issues/1445
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/SimpleHoster.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index c333f34b0..222ba4b05 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -239,7 +239,7 @@ def secondsToMidnight(gmt=0):
class SimpleHoster(Hoster):
__name__ = "SimpleHoster"
__type__ = "hoster"
- __version__ = "1.50"
+ __version__ = "1.51"
__pattern__ = r'^unmatchable$'
__config__ = [("use_premium", "bool", "Use premium account if available" , True),
@@ -474,7 +474,7 @@ class SimpleHoster(Hoster):
if not self.link and not self.lastDownload:
self.MULTI_HOSTER = False
- self.retry(1, reason="Multi hoster fails")
+ self.retry(1, reason=_("Multi hoster fails"))
if not self.link and not self.lastDownload:
self.preload()
@@ -635,9 +635,14 @@ class SimpleHoster(Hoster):
elif re.search('up to', errmsg, re.I):
self.fail(_("File too large for free download"))
- elif re.search('offline|delet|remov|not (found|available)', errmsg, re.I):
+ elif re.search('offline|delet|remov|not? (found|(longer)? available)', errmsg, re.I):
self.offline()
+ elif re.search('filename', errmsg, re.I):
+ url_p = urlparse.urlparse(self.pyfile.url)
+ self.pyfile.url = "%s://%s/%s" % (url_p.scheme, url_p.netloc, url_p.path.strip('/').split('/')[0])
+ self.retry(1, reason=_("Wrong url"))
+
elif re.search('premium', errmsg, re.I):
self.fail(_("File can be downloaded by premium users only"))