diff --git a/yt_dlp/extractor/_extractors.py b/yt_dlp/extractor/_extractors.py index 9b73fcd75e..bcb0e1118f 100644 --- a/yt_dlp/extractor/_extractors.py +++ b/yt_dlp/extractor/_extractors.py @@ -1,6 +1,8 @@ # flake8: noqa: F401 # isort: off +from .demo import DemoIE + from .youtube import ( # Youtube is moved to the top to improve performance YoutubeIE, YoutubeClipIE, diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index 616af58d81..4689a96db4 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -673,11 +673,12 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor): for json_lang, json_filename in json_subs.items(): escaped_json_filename = self._ffmpeg_filename_argument(json_filename) + json_basename = os.path.basename(json_filename) opts.extend([ '-map', f'-0:m:filename:{json_lang}.json?', '-attach', escaped_json_filename, - f'-metadata:s:m:filename:{escaped_json_filename}', 'mimetype=application/json', - f'-metadata:s:m:filename:{escaped_json_filename}', f'filename={json_lang}.json', + f'-metadata:s:m:filename:{json_basename}', 'mimetype=application/json', + f'-metadata:s:m:filename:{json_basename}', f'filename={json_lang}.json', ]) temp_filename = prepend_extension(filename, 'temp')