]> gitweb @ CieloNegro.org - youtube-dl.git/commit
[YoutubeDL] Apply expand_path after output template substitution
authorSergey M․ <dstftw@gmail.com>
Sat, 15 Apr 2017 18:39:07 +0000 (01:39 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 15 Apr 2017 18:39:07 +0000 (01:39 +0700)
commitd35dc344af8ca0b4cc9ea738a290c04842adb9db
treea552df86e465f607fae82440f985c9414de36716
parent51350db5a395c45cb181b1813a71b5e1aff86993
[YoutubeDL] Apply expand_path after output template substitution
os.path.expandvars translates '%%' into '%' making output template invalid.
Before: '%%(ext)s' -(expand path)-> '%(ext)s' -(outtmpl subst.)-> 'mp4'
After: '%%(ext)s' -(outtmpl subst.)-> '%(ext)s' -(expand path)-> '%(ext)s'
youtube_dl/YoutubeDL.py