diff options
author | Filippo Valsorda <filippo.valsorda@gmail.com> | 2013-03-20 11:29:07 +0100 |
---|---|---|
committer | Filippo Valsorda <filippo.valsorda@gmail.com> | 2013-03-20 11:29:07 +0100 |
commit | b9fc428494b22623529d364387b8693cc3cb1503 (patch) | |
tree | bc13b8ac70b49c170a842a4444e826364905298c /youtube_dl/__init__.py | |
parent | c0ba10467457a58e7198b58793f3c4683b1c3ec7 (diff) |
add '--write-srt' and '--srt-lang' aliases for backwards compatibility
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r-- | youtube_dl/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index e5a7469af..c4f64893d 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -173,7 +173,7 @@ def parseOpts(): action='store', dest='format_limit', metavar='FORMAT', help='highest quality format to download') video_format.add_option('-F', '--list-formats', action='store_true', dest='listformats', help='list all available formats (currently youtube only)') - video_format.add_option('--write-sub', + video_format.add_option('--write-sub', '--write-srt', action='store_true', dest='writesubtitles', help='write subtitle file (currently youtube only)', default=False) video_format.add_option('--only-sub', @@ -188,7 +188,7 @@ def parseOpts(): video_format.add_option('--sub-format', action='store', dest='subtitlesformat', metavar='LANG', help='subtitle format [srt/sbv] (default=srt) (currently youtube only)', default='srt') - video_format.add_option('--sub-lang', + video_format.add_option('--sub-lang', '--srt-lang', action='store', dest='subtitleslang', metavar='LANG', help='language of the subtitles to download (optional) use IETF language tags like \'en\'') |