diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-28 00:08:52 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-28 00:08:52 +0600 |
commit | 6c4d20cd6fae8e47c1f0c6771e2e91660bf10eb5 (patch) | |
tree | e93a0949e0740432a543e08faa4a2cc977f72dc0 | |
parent | 04c27802c08268c5c9e42ca226d2a848a657b82c (diff) |
[downloader/external] Fix externals downloaders specified with extension on Windows
-rw-r--r-- | youtube_dl/downloader/external.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index a57c15856..1d5cc9904 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -131,5 +131,6 @@ def list_external_downloaders(): def get_external_downloader(external_downloader): """ Given the name of the executable, see whether we support the given downloader . """ - bn = os.path.basename(external_downloader) + # Drop .exe extension on Windows + bn = os.path.splitext(os.path.basename(external_downloader))[0] return _BY_NAME[bn] |