projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Not directly calling soundcloud extractor anymore
[youtube-dl]
/
youtube_dl
/
downloader
/
rtmp.py
diff --git
a/youtube_dl/downloader/rtmp.py
b/youtube_dl/downloader/rtmp.py
index 68646709a16cf7c9dcec0ac1c5e09f5643a9a7a2..5eb108302339ec1678458fd8572c219a0980200b 100644
(file)
--- a/
youtube_dl/downloader/rtmp.py
+++ b/
youtube_dl/downloader/rtmp.py
@@
-8,9
+8,10
@@
import time
from .common import FileDownloader
from ..utils import (
from .common import FileDownloader
from ..utils import (
+ check_executable,
+ compat_str,
encodeFilename,
format_bytes,
encodeFilename,
format_bytes,
- compat_str,
)
)
@@
-103,9
+104,7
@@
class RtmpFD(FileDownloader):
test = self.params.get('test', False)
# Check for rtmpdump first
test = self.params.get('test', False)
# Check for rtmpdump first
- try:
- subprocess.call(['rtmpdump', '-h'], stdout=(open(os.path.devnull, 'w')), stderr=subprocess.STDOUT)
- except (OSError, IOError):
+ if not check_executable('rtmpdump', ['-h']):
self.report_error('RTMP download detected but "rtmpdump" could not be run. Please install it.')
return False
self.report_error('RTMP download detected but "rtmpdump" could not be run. Please install it.')
return False