diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index e9a51cba40bb..ce8ac2e89f7f 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -1162,6 +1162,9 @@ def get_value(mdict): if mdict['strf_format']: value = strftime_or_none(value, mdict['strf_format'].replace('\\,', ',')) + # XXX: Workaround for https://github.com/yt-dlp/yt-dlp/issues/4485 + if sanitize and value == '': + value = None return value na = self.params.get('outtmpl_na_placeholder', 'NA')