From 7816c2fe59dc5674bcf4204fb749a7af5dfbdce6 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Tue, 30 May 2023 23:20:40 -0700 Subject: [PATCH] [BUGFIX] Add `check_formats` on download retry (#623) --- src/ytdl_sub/downloaders/ytdlp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ytdl_sub/downloaders/ytdlp.py b/src/ytdl_sub/downloaders/ytdlp.py index 8b2b74ff..d66f0c80 100644 --- a/src/ytdl_sub/downloaders/ytdlp.py +++ b/src/ytdl_sub/downloaders/ytdlp.py @@ -102,6 +102,10 @@ class YTDLP: if is_downloaded and is_thumbnail_downloaded: return entry_dict + # Always add check_formats + # See https://github.com/yt-dlp/yt-dlp/issues/502 + copied_ytdl_options_overrides["check_formats"] = True + # If the video file is downloaded but the thumbnail is not, then do not download # the video again if is_downloaded and not is_thumbnail_downloaded: