aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-04-11 18:31:35 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-04-11 18:31:35 +0200
commit855703e55e46f3e070d9837a2eda1e6eb8a27301 (patch)
treefd718c35953b659c9d485b046991f96196ed362e /youtube_dl/__init__.py
parent927c8c49246bb7ae98596b3cf518425d46f39100 (diff)
Option to dump intermediate 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 489f8948a..f46143e01 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -224,6 +224,9 @@ def parseOpts():
help='display progress in console titlebar', default=False)
verbosity.add_option('-v', '--verbose',
action='store_true', dest='verbose', help='print various debugging information', default=False)
+ verbosity.add_option('--dump-intermediate-pages',
+ action='store_true', dest='dump_intermediate_pages', default=False,
+ help='print downloaded pages to debug problems(very verbose)')
filesystem.add_option('-t', '--title',
action='store_true', dest='usetitle', help='use title in file name', default=False)
@@ -485,6 +488,7 @@ def _real_main():
'max_downloads': opts.max_downloads,
'prefer_free_formats': opts.prefer_free_formats,
'verbose': opts.verbose,
+ 'dump_intermediate_pages': opts.dump_intermediate_pages,
'test': opts.test,
'keepvideo': opts.keepvideo,
'min_filesize': opts.min_filesize,