diff options
author | Philipp Hagemeister <[email protected]> | 2013-12-09 04:08:51 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2013-12-09 04:08:51 +0100 |
commit | 0783b09b9253b8dc55d592de98877f25ec7c3b90 (patch) | |
tree | 52b9df3cbb51886a73dcbfed526774598d48594a /youtube_dl/__init__.py | |
parent | ffe62508e4ea5a7ef58f1634dd29fb0fa9ad7837 (diff) | |
download | youtube-dl-0783b09b9253b8dc55d592de98877f25ec7c3b90.tar.gz youtube-dl-0783b09b9253b8dc55d592de98877f25ec7c3b90.zip |
Add a workaround for terminals without bidi support (Fixes #1912)
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r-- | youtube_dl/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index d2446b670..2e3f96919 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -204,6 +204,9 @@ def parseOpts(overrideArguments=None): general.add_option( '--socket-timeout', dest='socket_timeout', type=float, default=None, help=optparse.SUPPRESS_HELP) + general.add_option( + '--bidi-workaround', dest='bidi_workaround', action='store_true', + help=u'Work around terminals that lack bidirectional text support. Requires fribidi executable in PATH') selection.add_option('--playlist-start', @@ -684,6 +687,7 @@ def _real_main(argv=None): 'nocheckcertificate': opts.no_check_certificate, 'proxy': opts.proxy, 'socket_timeout': opts.socket_timeout, + 'bidi_workaround': opts.bidi_workaround, } with YoutubeDL(ydl_opts) as ydl: |