mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-10 18:59:39 +00:00
[cleanup] Misc fixes (see desc)
* Do not warn when fixup is skipped for existing file
* [fragment] Fix `--skip-unavailable-fragments` for HTTP Errors
* [utils] write_string: Fix bug in 59f943cd50
* [utils] parse_codecs: Subtitle codec is generally referred to as `scodec`. https://github.com/yt-dlp/yt-dlp/pull/2174#discussion_r790156048
* [docs] Remove note about permissions. Closes #3597
This commit is contained in:
@@ -3151,16 +3151,16 @@ class YoutubeDL:
|
||||
if fixup_policy in ('ignore', 'never'):
|
||||
return
|
||||
elif fixup_policy == 'warn':
|
||||
do_fixup = False
|
||||
do_fixup = 'warn'
|
||||
elif fixup_policy != 'force':
|
||||
assert fixup_policy in ('detect_or_warn', None)
|
||||
if not info_dict.get('__real_download'):
|
||||
do_fixup = False
|
||||
|
||||
def ffmpeg_fixup(cndn, msg, cls):
|
||||
if not cndn:
|
||||
if not (do_fixup and cndn):
|
||||
return
|
||||
if not do_fixup:
|
||||
elif do_fixup == 'warn':
|
||||
self.report_warning(f'{vid}: {msg}')
|
||||
return
|
||||
pp = cls(self)
|
||||
|
Reference in New Issue
Block a user