[bilibili] do not download danmaku for dry_run

This commit is contained in:
Mort Yao 2015-10-16 22:34:19 +02:00
parent cdb447992c
commit 1994198b65
2 changed files with 2 additions and 2 deletions

View File

@ -870,7 +870,7 @@ def script_main(script_name, download, download_playlist = None):
-y | --extractor-proxy <HOST:PORT> Use specific HTTP proxy for extracting stream data. -y | --extractor-proxy <HOST:PORT> Use specific HTTP proxy for extracting stream data.
--no-proxy Don't use any proxy. (ignore $http_proxy) --no-proxy Don't use any proxy. (ignore $http_proxy)
--debug Show traceback on KeyboardInterrupt. --debug Show traceback on KeyboardInterrupt.
--json Output the information of videos in json text without downloading. --json Output the information of videos in json text without downloading.
''' '''
short_opts = 'Vhfiuc:nF:o:p:x:y:' short_opts = 'Vhfiuc:nF:o:p:x:y:'

View File

@ -143,7 +143,7 @@ def bilibili_download(url, output_dir='.', merge=True, info_only=False, **kwargs
else: else:
raise NotImplementedError(flashvars) raise NotImplementedError(flashvars)
if not info_only: if not info_only and not dry_run:
title = get_filename(title) title = get_filename(title)
print('Downloading %s ...\n' % (title + '.cmt.xml')) print('Downloading %s ...\n' % (title + '.cmt.xml'))
xml = get_srt_xml(id) xml = get_srt_xml(id)