diff options
author | Philipp Hagemeister <[email protected]> | 2015-02-26 01:44:20 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2015-02-26 01:44:20 +0100 |
commit | 2a15a98a6a077381cba52207b791d03506b0416c (patch) | |
tree | a27773d2fd2cb7b365fef4f3acc69b42a75f037c | |
parent | 72a406e7aa6ef751f5f2ad4b110b749ce40d70a4 (diff) | |
download | youtube-dl-2a15a98a6a077381cba52207b791d03506b0416c.tar.gz youtube-dl-2a15a98a6a077381cba52207b791d03506b0416c.zip |
[rmtp] Encode filename before invoking subprocess
This fixes #5066.
Reproducible with
LC_ALL=C youtube-dl "http://www.prosieben.de/tv/germanys-next-topmodel/video/playlist/ganze-folge-episode-2-das-casting-in-muenchen"
-rw-r--r-- | youtube_dl/downloader/rtmp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/downloader/rtmp.py b/youtube_dl/downloader/rtmp.py index 0a52c34c7..89e98ae61 100644 --- a/youtube_dl/downloader/rtmp.py +++ b/youtube_dl/downloader/rtmp.py @@ -119,7 +119,9 @@ class RtmpFD(FileDownloader): # Download using rtmpdump. rtmpdump returns exit code 2 when # the connection was interrumpted and resuming appears to be # possible. This is part of rtmpdump's normal usage, AFAIK. - basic_args = ['rtmpdump', '--verbose', '-r', url, '-o', tmpfilename] + basic_args = [ + 'rtmpdump', '--verbose', '-r', url, + '-o', encodeFilename(tmpfilename, True)] if player_url is not None: basic_args += ['--swfVfy', player_url] if page_url is not None: |