common.py: Print merged filename after successful merge

Instead of just "Done.".
This commit is contained in:
Zhiming Wang 2016-05-12 23:56:34 -07:00
parent 7dc471f18e
commit 03a4d3cc91
No known key found for this signature in database
GPG Key ID: BBD31D4D110044B8

View File

@ -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: