diff options
| author | Sergey M․ <dstftw@gmail.com> | 2015-09-05 03:06:53 +0600 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2015-09-05 03:06:53 +0600 | 
| commit | 6270239a6d75be02a13aec10bb7f229370ffea6f (patch) | |
| tree | f3eb4d30ceaef3f1df33fedce897a88b9b3e5337 /youtube_dl/postprocessor/common.py | |
| parent | 1195a38f460a6bf895ada6405284da103dc467de (diff) | |
[postprocessor/common] Use generalized cli option converters
Diffstat (limited to 'youtube_dl/postprocessor/common.py')
| -rw-r--r-- | youtube_dl/postprocessor/common.py | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/youtube_dl/postprocessor/common.py b/youtube_dl/postprocessor/common.py index 4191d040b..150ef9173 100644 --- a/youtube_dl/postprocessor/common.py +++ b/youtube_dl/postprocessor/common.py @@ -4,6 +4,7 @@ import os  from ..utils import (      PostProcessingError, +    cli_configuration_args,      encodeFilename,  ) @@ -61,11 +62,7 @@ class PostProcessor(object):              self._downloader.report_warning(errnote)      def _configuration_args(self, default=[]): -        pp_args = self._downloader.params.get('postprocessor_args') -        if pp_args is None: -            return default -        assert isinstance(pp_args, list) -        return pp_args +        return cli_configuration_args(self.params, 'postprocessor_args', default)  class AudioConversionError(PostProcessingError):  | 
