mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
fix blank line in terminal output
This commit is contained in:
parent
d28a2abe07
commit
ff7ef4c09a
@ -278,6 +278,7 @@ def download_urls(urls, title, ext, total_size, output_dir = '.', refer = None,
|
|||||||
if total_size:
|
if total_size:
|
||||||
if not force and os.path.exists(filepath) and os.path.getsize(filepath) >= total_size * 0.9:
|
if not force and os.path.exists(filepath) and os.path.getsize(filepath) >= total_size * 0.9:
|
||||||
print('Skipping %s: file already exists' % tr(filepath))
|
print('Skipping %s: file already exists' % tr(filepath))
|
||||||
|
print()
|
||||||
return
|
return
|
||||||
bar = SimpleProgressBar(total_size, len(urls))
|
bar = SimpleProgressBar(total_size, len(urls))
|
||||||
else:
|
else:
|
||||||
@ -300,6 +301,7 @@ def download_urls(urls, title, ext, total_size, output_dir = '.', refer = None,
|
|||||||
url_save(url, filepath, bar, refer = refer, is_part = True)
|
url_save(url, filepath, bar, refer = refer, is_part = True)
|
||||||
bar.done()
|
bar.done()
|
||||||
if not merge:
|
if not merge:
|
||||||
|
print()
|
||||||
return
|
return
|
||||||
if ext == 'flv':
|
if ext == 'flv':
|
||||||
from .processor.merge_flv import concat_flvs
|
from .processor.merge_flv import concat_flvs
|
||||||
@ -314,6 +316,8 @@ def download_urls(urls, title, ext, total_size, output_dir = '.', refer = None,
|
|||||||
else:
|
else:
|
||||||
print("Can't merge %s files" % ext)
|
print("Can't merge %s files" % ext)
|
||||||
|
|
||||||
|
print()
|
||||||
|
|
||||||
def playlist_not_supported(name):
|
def playlist_not_supported(name):
|
||||||
def f(*args, **kwargs):
|
def f(*args, **kwargs):
|
||||||
raise NotImplementedError('Playlist is not supported for ' + name)
|
raise NotImplementedError('Playlist is not supported for ' + name)
|
||||||
|
Loading…
Reference in New Issue
Block a user