summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2013-10-28 10:44:02 +0100
committerPhilipp Hagemeister <[email protected]>2013-10-28 10:44:02 +0100
commitd41e6efc852c34da582790a54ecc4f5e9dbbedda (patch)
tree0676ffe25b9e5d747ef5c1b0cfeec11486fa58c1 /youtube_dl/__init__.py
parentc19f7764a5499b0f1e1914dd5101619b8d57d7cf (diff)
downloadyoutube-dl-d41e6efc852c34da582790a54ecc4f5e9dbbedda.tar.gz
youtube-dl-d41e6efc852c34da582790a54ecc4f5e9dbbedda.zip
New debug option --write-pages
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r--youtube_dl/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index a33dec785..48ffcbf8e 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -316,6 +316,9 @@ def parseOpts(overrideArguments=None):
verbosity.add_option('--dump-intermediate-pages',
action='store_true', dest='dump_intermediate_pages', default=False,
help='print downloaded pages to debug problems(very verbose)')
+ verbosity.add_option('--write-pages',
+ action='store_true', dest='write_pages', default=False,
+ help='Write downloaded pages to files in the current directory')
verbosity.add_option('--youtube-print-sig-code',
action='store_true', dest='youtube_print_sig_code', default=False,
help=optparse.SUPPRESS_HELP)
@@ -652,6 +655,7 @@ def _real_main(argv=None):
'prefer_free_formats': opts.prefer_free_formats,
'verbose': opts.verbose,
'dump_intermediate_pages': opts.dump_intermediate_pages,
+ 'write_pages': opts.write_pages,
'test': opts.test,
'keepvideo': opts.keepvideo,
'min_filesize': opts.min_filesize,