Browse Source

Fix Python 3 errors with rmtp downloads

rtmp_test
Philipp Hagemeister 12 years ago
parent
commit
967897fd22
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/FileDownloader.py

+ 1
- 1
youtube_dl/FileDownloader.py View File

@ -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…
Cancel
Save