1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-22 22:47:55 +01:00

Fix Python 3 errors with rmtp downloads

This commit is contained in:
Philipp Hagemeister 2013-03-03 22:38:38 +01:00
parent f918ec7ea2
commit 967897fd22

View File

@ -575,7 +575,7 @@ class FileDownloader(object):
# Check for rtmpdump first
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):
self.trouble(u'ERROR: RTMP download detected but "rtmpdump" could not be run')
return False