From c0bdf32a3cb0f6a08ba92cb5261d020ef2f61892 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Thu, 8 Jan 2015 18:01:41 +0100 Subject: Add --print-json (Closes #2845) --- youtube_dl/options.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'youtube_dl/options.py') diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 058342dec..feaca03a3 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -445,6 +445,11 @@ def parseOpts(overrideArguments=None): '-J', '--dump-single-json', action='store_true', dest='dump_single_json', default=False, help='simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line.') + verbosity.add_option( + '--print-json', + action='store_true', dest='print_json', default=False, + help='Be quiet and print the video information as JSON (video is still being downloaded).', + ) verbosity.add_option( '--newline', action='store_true', dest='progress_with_newline', default=False, -- cgit v1.2.3