mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 02:25:11 +00:00
Fix Python 3 errors with rmtp downloads
This commit is contained in:
parent
f918ec7ea2
commit
967897fd22
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ def _download_with_rtmpdump(self, filename, url, player_url, page_url):
|
|||
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue