diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-03-27 23:59:32 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-03-27 23:59:32 +0200 |
commit | 58fd2b4dcb5ae0cee1d12e2c07ef53d1a65fcdff (patch) | |
tree | 4ea597bac8d28fe74596fdcd2a5851aa819f7bc7 | |
parent | d57885c8f0d2c7fb80001be19bdcac8101506875 (diff) |
Fix downloading of URLs ending in /
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | fb.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -622,7 +622,7 @@ class FBClient: return Paste(self.extractId(arg)) if re.match('https?://', arg): # FIXME: this does not work with URLs ending in / and it does not use content-disposition - outfile = os.path.join(self.tempdir, os.path.basename(arg)) + outfile = os.path.join(self.tempdir, os.path.basename(arg.strip("/"))) self.curlw.dl_file(arg, outfile) return File(outfile) |