mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 14:52:38 +00:00
Fix Python 3 errors with rmtp downloads
This commit is contained in:
parent
f918ec7ea2
commit
967897fd22
@ -575,7 +575,7 @@ class FileDownloader(object):
|
|||||||
|
|
||||||
# Check for rtmpdump first
|
# Check for rtmpdump first
|
||||||
try:
|
try:
|
||||||
subprocess.call(['rtmpdump', '-h'], stdout=(file(os.path.devnull, 'w')), stderr=subprocess.STDOUT)
|
subprocess.call(['rtmpdump', '-h'], stdout=(open(os.path.devnull, 'w')), stderr=subprocess.STDOUT)
|
||||||
except (OSError, IOError):
|
except (OSError, IOError):
|
||||||
self.trouble(u'ERROR: RTMP download detected but "rtmpdump" could not be run')
|
self.trouble(u'ERROR: RTMP download detected but "rtmpdump" could not be run')
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user