Merge branch 'print-merged-filename' of https://github.com/zmwangx/you-get into zmwangx-print-merged-filename

This commit is contained in:
Mort Yao 2016-05-14 23:49:57 +02:00
commit 6938894337
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -736,7 +736,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)
@ -749,7 +749,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:
@ -765,7 +765,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:
@ -781,7 +781,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: