diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-11-02 10:55:36 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-11-02 10:55:36 +0100 |
commit | 4c83c96795b1bf469b0e290fc1cbbed6f49f04bf (patch) | |
tree | a298d68dfa9c1d242eb9806ee3ab2044306b38d5 /youtube_dl/downloader | |
parent | 9580711841d60426e2b888cde7b410ae7d512849 (diff) |
[YoutubeDL] Include rtmpdump in exe versions -v output
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r-- | youtube_dl/downloader/rtmp.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/downloader/rtmp.py b/youtube_dl/downloader/rtmp.py index 5eb108302..17d9631fa 100644 --- a/youtube_dl/downloader/rtmp.py +++ b/youtube_dl/downloader/rtmp.py @@ -12,9 +12,15 @@ from ..utils import ( compat_str, encodeFilename, format_bytes, + get_exe_version, ) +def rtmpdump_version(): + return get_exe_version( + 'rtmpdump', ['--help'], r'(?i)RTMPDump\s*v?([0-9a-zA-Z._-]+)') + + class RtmpFD(FileDownloader): def real_download(self, filename, info_dict): def run_rtmpdump(args): |