diff options
author | Gino Lisignoli <glisignoli@gmail.com> | 2013-02-13 14:02:31 +1300 |
---|---|---|
committer | Gino Lisignoli <glisignoli@gmail.com> | 2013-02-13 14:02:31 +1300 |
commit | 7311fef854632130af5edcae7f6762f0fedbaccb (patch) | |
tree | 8a925f224a4d08b028d890757757bc4609804499 /youtube_dl/__init__.py | |
parent | 906417c7c586218c5a61f9966ce7d67528f97b69 (diff) |
Modified youtube-dl to write new lines with the --newline switch. This
enables easier process monitoring when being called with external
scripts.
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r-- | youtube_dl/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index abcb4f165..38b5fb163 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -202,6 +202,8 @@ def parseOpts(): verbosity.add_option('--get-format', action='store_true', dest='getformat', help='simulate, quiet but print output format', default=False) + verbosity.add_option('--newline', + action='store_true', dest='newline', help='Output progress bar as new lines', default=False) verbosity.add_option('--no-progress', action='store_true', dest='noprogress', help='do not print progress bar', default=False) verbosity.add_option('--console-title', @@ -210,7 +212,6 @@ def parseOpts(): verbosity.add_option('-v', '--verbose', action='store_true', dest='verbose', help='print various debugging information', default=False) - filesystem.add_option('-t', '--title', action='store_true', dest='usetitle', help='use title in file name', default=False) filesystem.add_option('--id', |