Explorar el Código

[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"
Philipp Hagemeister hace 10 años
padre
commit
2a15a98a6a
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      youtube_dl/downloader/rtmp.py

+ 3 - 1
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: