summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/Ftp.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-16 01:56:35 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-16 01:56:35 +0200
commitfa7c07a2c123c040364f0f01eb0291ba197ec878 (patch)
treee56fa588519a53aa4214e96bccca29e622adea6e /module/plugins/hoster/Ftp.py
parentMerge pull request #1418 from GammaC0de/GammaC0de-fix-Oboom.com (diff)
downloadpyload-fa7c07a2c123c040364f0f01eb0291ba197ec878.tar.xz
[Ftp] Fixup
Diffstat (limited to 'module/plugins/hoster/Ftp.py')
-rw-r--r--module/plugins/hoster/Ftp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/Ftp.py b/module/plugins/hoster/Ftp.py
index 5258a1c27..295955cbe 100644
--- a/module/plugins/hoster/Ftp.py
+++ b/module/plugins/hoster/Ftp.py
@@ -11,7 +11,7 @@ from module.plugins.Hoster import Hoster
class Ftp(Hoster):
__name__ = "Ftp"
__type__ = "hoster"
- __version__ = "0.51"
+ __version__ = "0.52"
__pattern__ = r'(?:ftps?|sftp)://([\w.-]+(:[\w.-]+)?@)?[\w.-]+(:\d+)?/.+'
@@ -66,7 +66,7 @@ class Ftp(Hoster):
#Naive ftp directory listing
if re.search(r'^25\d.*?"', self.req.http.header, re.M):
pyfile.url = pyfile.url.rstrip('/')
- pkgname = "/".join(pyfile.package().name, urlparse.urlparse(pyfile.url).path.rpartition('/')[2])
+ pkgname = "/".join([pyfile.package().name, urlparse.urlparse(pyfile.url).path.rpartition('/')[2]])
pyfile.url += '/'
self.req.http.c.setopt(48, 1) # CURLOPT_DIRLISTONLY
res = self.load(pyfile.url, decode=False)