From 03a4d3cc91c91dcc6908b070ae98ac68100c2669 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Thu, 12 May 2016 23:56:34 -0700 Subject: [PATCH] common.py: Print merged filename after successful merge Instead of just "Done.". --- src/you_get/common.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/you_get/common.py b/src/you_get/common.py index 284b1660..f35cdf18 100755 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -735,7 +735,7 @@ def download_urls(urls, title, ext, total_size, output_dir='.', refer=None, merg if has_ffmpeg_installed(): from .processor.ffmpeg import ffmpeg_concat_av ret = ffmpeg_concat_av(parts, output_filepath, ext) - print('Done.') + print('Merged into %s' % output_filename) if ret == 0: for part in parts: os.remove(part) @@ -748,7 +748,7 @@ def download_urls(urls, title, ext, total_size, output_dir='.', refer=None, merg else: from .processor.join_flv import concat_flv concat_flv(parts, output_filepath) - print('Done.') + print('Merged into %s' % output_filename) except: raise else: @@ -764,7 +764,7 @@ def download_urls(urls, title, ext, total_size, output_dir='.', refer=None, merg else: from .processor.join_mp4 import concat_mp4 concat_mp4(parts, output_filepath) - print('Done.') + print('Merged into %s' % output_filename) except: raise else: @@ -780,7 +780,7 @@ def download_urls(urls, title, ext, total_size, output_dir='.', refer=None, merg else: from .processor.join_ts import concat_ts concat_ts(parts, output_filepath) - print('Done.') + print('Merged into %s' % output_filename) except: raise else: