aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2017-09-23 02:30:03 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2017-09-23 02:30:03 +0800
commit8c2895305dc09920055611c8120f5a65fcd2614f (patch)
tree4dca59b87893607514e1502b59e3a09bd90443c6
parent8c6919e4331e1cd44f50e700e8fc4e630d913a2f (diff)
[options] Accept lrc as a subtitle conversion target format (closes #14292)
-rw-r--r--ChangeLog1
-rw-r--r--youtube_dl/__init__.py2
-rw-r--r--youtube_dl/options.py2
3 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ba9260e3e..42ba879b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
version <unreleased>
Core
++ [options] Accept lrc as a subtitle conversion target format (#14292)
* [utils] Fix handling raw TTML subtitles (#14191)
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index c4589411e..ba684a075 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -206,7 +206,7 @@ def _real_main(argv=None):
if opts.recodevideo not in ['mp4', 'flv', 'webm', 'ogg', 'mkv', 'avi']:
parser.error('invalid video recode format specified')
if opts.convertsubtitles is not None:
- if opts.convertsubtitles not in ['srt', 'vtt', 'ass']:
+ if opts.convertsubtitles not in ['srt', 'vtt', 'ass', 'lrc']:
parser.error('invalid subtitle format specified')
if opts.date is not None:
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 38439c971..4c0455044 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -847,7 +847,7 @@ def parseOpts(overrideArguments=None):
postproc.add_option(
'--convert-subs', '--convert-subtitles',
metavar='FORMAT', dest='convertsubtitles', default=None,
- help='Convert the subtitles to other format (currently supported: srt|ass|vtt)')
+ help='Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)')
parser.add_option_group(general)
parser.add_option_group(network)