mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-11-16 07:48:01 +01:00
Partial solution for detecting existing files correctly even when extracting audio
* Does not work when audio format is 'best'
This commit is contained in:
parent
ece8a2a1b6
commit
f6d7624f57
1 changed files with 3 additions and 1 deletions
|
@ -350,6 +350,8 @@ def _real_main(argv=None):
|
||||||
opts.postprocessor_args.setdefault('sponskrub', [])
|
opts.postprocessor_args.setdefault('sponskrub', [])
|
||||||
opts.postprocessor_args['default'] = opts.postprocessor_args['default-compat']
|
opts.postprocessor_args['default'] = opts.postprocessor_args['default-compat']
|
||||||
|
|
||||||
|
audio_ext = opts.audioformat if (opts.extractaudio and opts.audioformat != 'best') else None
|
||||||
|
|
||||||
match_filter = (
|
match_filter = (
|
||||||
None if opts.match_filter is None
|
None if opts.match_filter is None
|
||||||
else match_filter_func(opts.match_filter))
|
else match_filter_func(opts.match_filter))
|
||||||
|
@ -469,7 +471,7 @@ def _real_main(argv=None):
|
||||||
'extract_flat': opts.extract_flat,
|
'extract_flat': opts.extract_flat,
|
||||||
'mark_watched': opts.mark_watched,
|
'mark_watched': opts.mark_watched,
|
||||||
'merge_output_format': opts.merge_output_format,
|
'merge_output_format': opts.merge_output_format,
|
||||||
'final_ext': opts.recodevideo or opts.remuxvideo,
|
'final_ext': opts.recodevideo or opts.remuxvideo or audio_ext,
|
||||||
'postprocessors': postprocessors,
|
'postprocessors': postprocessors,
|
||||||
'fixup': opts.fixup,
|
'fixup': opts.fixup,
|
||||||
'source_address': opts.source_address,
|
'source_address': opts.source_address,
|
||||||
|
|
Loading…
Reference in a new issue