mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-09 08:15:10 +01:00
[cleanup] Refactor __init__.py (#2570)
* Split `__init__` code into multiple functions * Clean up validation code by grouping similar types of options * Expose `parse_options` to third parties
This commit is contained in:
parent
1eae7f94c1
commit
d1b5f70bc9
4 changed files with 486 additions and 467 deletions
|
|
@ -404,7 +404,7 @@ class FFmpegPostProcessor(PostProcessor):
|
|||
|
||||
class FFmpegExtractAudioPP(FFmpegPostProcessor):
|
||||
COMMON_AUDIO_EXTS = ('wav', 'flac', 'm4a', 'aiff', 'mp3', 'ogg', 'mka', 'opus', 'wma')
|
||||
SUPPORTED_EXTS = ('best', 'aac', 'flac', 'mp3', 'm4a', 'opus', 'vorbis', 'wav', 'alac')
|
||||
SUPPORTED_EXTS = ('aac', 'flac', 'mp3', 'm4a', 'opus', 'vorbis', 'wav', 'alac')
|
||||
|
||||
def __init__(self, downloader=None, preferredcodec=None, preferredquality=None, nopostoverwrites=False):
|
||||
FFmpegPostProcessor.__init__(self, downloader)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue