youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 6c4d20cd6fae8e47c1f0c6771e2e91660bf10eb5
parent 04c27802c08268c5c9e42ca226d2a848a657b82c
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun, 28 Jun 2015 00:08:52 +0600

[downloader/external] Fix externals downloaders specified with extension on Windows

Diffstat:
Myoutube_dl/downloader/external.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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]