Browse Source
[options] Accept lrc as a subtitle conversion target format (closes #14292)
master
Yen Chi Hsuan
7 years ago
No known key found for this signature in database
GPG Key ID: 3FDDD575826C5C30
3 changed files with
3 additions and
2 deletions
-
ChangeLog
-
youtube_dl/__init__.py
-
youtube_dl/options.py
|
|
@ -1,6 +1,7 @@ |
|
|
|
version <unreleased> |
|
|
|
|
|
|
|
Core |
|
|
|
+ [options] Accept lrc as a subtitle conversion target format (#14292) |
|
|
|
* [utils] Fix handling raw TTML subtitles (#14191) |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -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: |
|
|
|
|
|
@ -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) |
|
|
|