From ba9cfb23f2f6a640de4bd50079c02f9400d90210 Mon Sep 17 00:00:00 2001 From: gavin <32209764+7x11x13@users.noreply.github.com> Date: Wed, 8 Jan 2025 11:57:48 -0500 Subject: [PATCH] Update yt_dlp/YoutubeDL.py Co-authored-by: pukkandan --- yt_dlp/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 2e95039ed0..d1b4a7c25b 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -1430,7 +1430,7 @@ class YoutubeDL: if not trim_filename: return self.escape_outtmpl(outtmpl) % info_dict - ext_suffix = '.%(ext\x00s)s' # not sure why this has null char + ext_suffix = '.%(ext\0s)s' suffix = '' if outtmpl.endswith(ext_suffix): outtmpl = outtmpl[:-len(ext_suffix)]