From 347734511c4001ae3747989d41f7d772ebc142ba Mon Sep 17 00:00:00 2001 From: MAA Date: Wed, 16 Nov 2016 07:21:12 +0300 Subject: [PATCH] Simplify audioquality option parsing logic. --- youtube_dl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 643393558..d311e7927 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -194,7 +194,7 @@ def _real_main(argv=None): if opts.audioformat not in ['best', 'aac', 'mp3', 'm4a', 'opus', 'vorbis', 'wav']: parser.error('invalid audio format specified') if opts.audioquality: - opts.audioquality = opts.audioquality.strip('k').strip('K') + opts.audioquality = opts.audioquality.lower().strip('k') if not opts.audioquality.isdigit(): parser.error('invalid audio quality specified') if opts.recodevideo is not None: