aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-06-20 04:15:19 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-06-20 04:59:34 +0530
commitf89b3e2d7ab7a6e28fc1d9975aa4e998b165c090 (patch)
tree7fcbb4ef7538a1084b2cd45cc019a774bebdd830 /yt_dlp/YoutubeDL.py
parentfd7cfb6444272678b9bada28ed3dfa68535dc85e (diff)
downloadhypervideo-pre-f89b3e2d7ab7a6e28fc1d9975aa4e998b165c090.tar.lz
hypervideo-pre-f89b3e2d7ab7a6e28fc1d9975aa4e998b165c090.tar.xz
hypervideo-pre-f89b3e2d7ab7a6e28fc1d9975aa4e998b165c090.zip
Skip fixup of existing files and add `--fixup force` to force it
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 37af2f3fb..b4ac1f00a 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -2690,7 +2690,10 @@ class YoutubeDL(object):
return
elif fixup_policy == 'warn':
do_fixup = False
- assert fixup_policy in ('detect_or_warn', None)
+ 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: