From f09a4fc4ef45ff663d9e89549df7d525d0594b1e Mon Sep 17 00:00:00 2001 From: Stefano Date: Thu, 28 Feb 2013 20:14:22 +0100 Subject: XFileSharingPro: Cleaning the download link The detected SpeedLoadOrg download URL has a \r at the end causing a Bad Gateway error. --- module/plugins/hoster/XFileSharingPro.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/plugins') diff --git a/module/plugins/hoster/XFileSharingPro.py b/module/plugins/hoster/XFileSharingPro.py index 0bf7618c8..ac3e1d5de 100644 --- a/module/plugins/hoster/XFileSharingPro.py +++ b/module/plugins/hoster/XFileSharingPro.py @@ -34,7 +34,7 @@ class XFileSharingPro(SimpleHoster): __name__ = "XFileSharingPro" __type__ = "hoster" __pattern__ = r"^unmatchable$" - __version__ = "0.15" + __version__ = "0.16" __description__ = """XFileSharingPro common hoster base""" __author_name__ = ("zoidberg") __author_mail__ = ("zoidberg@mujmail.cz") @@ -184,6 +184,7 @@ class XFileSharingPro(SimpleHoster): self.retry() def startDownload(self, link): + link = link.strip() if self.captcha: self.correctCaptcha() self.logDebug('DIRECT LINK: %s' % link) self.download(link) @@ -301,4 +302,4 @@ class XFileSharingPro(SimpleHoster): return 3 return 0 -getInfo = create_getInfo(XFileSharingPro) \ No newline at end of file +getInfo = create_getInfo(XFileSharingPro) -- cgit v1.2.3