summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/XFSPHoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-27 01:18:45 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-27 01:18:45 +0100
commit146fe1e309c33ab149bfaf58ad86c0dd4fb9b156 (patch)
tree22bf2ace19d926392dbe7ba48e44c13c63cd368a /module/plugins/internal/XFSPHoster.py
parent[SimpleHoster] Direct download link support (diff)
downloadpyload-146fe1e309c33ab149bfaf58ad86c0dd4fb9b156.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/internal/XFSPHoster.py')
-rw-r--r--module/plugins/internal/XFSPHoster.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/XFSPHoster.py b/module/plugins/internal/XFSPHoster.py
index edbe8a0a2..44b2006ae 100644
--- a/module/plugins/internal/XFSPHoster.py
+++ b/module/plugins/internal/XFSPHoster.py
@@ -201,9 +201,9 @@ class XFSPHoster(SimpleHoster):
header = self.load(self.pyfile.url, just_header=True)
if 'location' in header: # Direct link
- self.startDownload(self.pyfile.url)
+ self.startDownload(header['location'])
else:
- self.retry(reason="OVR link location not found")
+ self.retry(reason=_("OVR link location not found"))
def startDownload(self, link):
@@ -232,7 +232,7 @@ class XFSPHoster(SimpleHoster):
self.wantReconnect = True
self.retry(25, 1 * 60 * 60, "Download limit exceeded")
elif 'countdown' in self.errmsg or 'Expired' in self.errmsg:
- self.retry(reason="Link expired")
+ self.retry(reason=_("Link expired"))
elif 'maintenance' in self.errmsg or 'maintainance' in self.errmsg:
self.tempOffline()
elif 'download files up to' in self.errmsg: