From 8674f43c36055fd1ceb06844a3bb445637e12271 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Tue, 27 Sep 2016 23:04:01 +0800 Subject: [PATCH] fix bug about renaming videos when downloading with ffmpeg --- src/you_get/common.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/you_get/common.py b/src/you_get/common.py index 7f76aaac..c2b585a6 100755 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -916,6 +916,11 @@ def download_url_ffmpeg(url,title, ext,params={}, total_size=0, output_dir='.', from .processor.ffmpeg import has_ffmpeg_installed, ffmpeg_download_stream assert has_ffmpeg_installed(), "FFmpeg not installed." + global output_filename + if(output_filename) + dotPos = output_filename.rfind(".") + title = output_filename[:dotPos] + ext = output_filename[dotPos+1:] ffmpeg_download_stream(url, title, ext, params, output_dir) def playlist_not_supported(name):