aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-03-24 21:23:05 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-03-24 21:23:05 +0100
commit75f2e25ba9aac4b9bd41fddd4bfc843e086a3288 (patch)
treec21b8bf90ddecd6fdac323eb77c97a467e387609
parent0d466d34a3e23ca6f84e37eca7003f4d762dc65e (diff)
downloadyoutube-dl-75f2e25ba9aac4b9bd41fddd4bfc843e086a3288.tar.xz
[downloader/hls] Encode filename (Fixes #2609)
-rw-r--r--youtube_dl/downloader/hls.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py
index fa983462b..9d407fe6e 100644
--- a/youtube_dl/downloader/hls.py
+++ b/youtube_dl/downloader/hls.py
@@ -13,8 +13,10 @@ class HlsFD(FileDownloader):
self.report_destination(filename)
tmpfilename = self.temp_name(filename)
- args = ['-y', '-i', url, '-f', 'mp4', '-c', 'copy',
- '-bsf:a', 'aac_adtstoasc', tmpfilename]
+ args = [
+ '-y', '-i', url, '-f', 'mp4', '-c', 'copy',
+ '-bsf:a', 'aac_adtstoasc',
+ encodeFilename(tmpfilename, for_subprocess=True)]
for program in ['avconv', 'ffmpeg']:
try: