From 1994198b6586c3b7a2acc8449d88a60f3e2c7006 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Fri, 16 Oct 2015 22:34:19 +0200 Subject: [PATCH] [bilibili] do not download danmaku for dry_run --- src/you_get/common.py | 2 +- src/you_get/extractors/bilibili.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/you_get/common.py b/src/you_get/common.py index 8cca99e6..bd895438 100755 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -870,7 +870,7 @@ def script_main(script_name, download, download_playlist = None): -y | --extractor-proxy Use specific HTTP proxy for extracting stream data. --no-proxy Don't use any proxy. (ignore $http_proxy) --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:' diff --git a/src/you_get/extractors/bilibili.py b/src/you_get/extractors/bilibili.py index f753a4c0..7243058d 100644 --- a/src/you_get/extractors/bilibili.py +++ b/src/you_get/extractors/bilibili.py @@ -143,7 +143,7 @@ def bilibili_download(url, output_dir='.', merge=True, info_only=False, **kwargs else: raise NotImplementedError(flashvars) - if not info_only: + if not info_only and not dry_run: title = get_filename(title) print('Downloading %s ...\n' % (title + '.cmt.xml')) xml = get_srt_xml(id)