|
|
@ -8,9 +8,10 @@ import time
|
|
|
|
|
|
|
|
|
|
|
|
from .common import FileDownloader
|
|
|
|
from .common import FileDownloader
|
|
|
|
from ..utils import (
|
|
|
|
from ..utils import (
|
|
|
|
|
|
|
|
check_executable,
|
|
|
|
|
|
|
|
compat_str,
|
|
|
|
encodeFilename,
|
|
|
|
encodeFilename,
|
|
|
|
format_bytes,
|
|
|
|
format_bytes,
|
|
|
|
compat_str,
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -103,9 +104,7 @@ class RtmpFD(FileDownloader):
|
|
|
|
test = self.params.get('test', False)
|
|
|
|
test = self.params.get('test', False)
|
|
|
|
|
|
|
|
|
|
|
|
# Check for rtmpdump first
|
|
|
|
# Check for rtmpdump first
|
|
|
|
try:
|
|
|
|
if not check_executable('rtmpdump', ['-h']):
|
|
|
|
subprocess.call(['rtmpdump', '-h'], stdout=(open(os.path.devnull, 'w')), stderr=subprocess.STDOUT)
|
|
|
|
|
|
|
|
except (OSError, IOError):
|
|
|
|
|
|
|
|
self.report_error('RTMP download detected but "rtmpdump" could not be run. Please install it.')
|
|
|
|
self.report_error('RTMP download detected but "rtmpdump" could not be run. Please install it.')
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
|
|
|
|
|
|
|
|