1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-28 01:18:30 +00:00
yt-dlp/yt_dlp/utils
Alexandre Ramos 8ec164054e Fix #9970: FFmpeg requires ext in filename for FFmpegMetadataPP
Output templates resulting in filenames with only dots preceding the
extension would be passed to ffmpeg for embeding metadata with .temp
in the extension field because os.path.splitext would not find and
extension field in those filenames.
As a result ffmpeg would fail to determine what the output extension
should be and fail.
To solve this a must_have_ext argument was added to _change_extension
so that where a extension is required the expected extension will be
used in those cases where os.path.splitext returns an empty string for
the extension field.
existing_video_file in YoutubeDL.py was also changed so it won't
overwrite info_dict['ext'] with an empty string if os.path.splitext
returns an empty string for the extension field. This fixes #9970 .
2025-03-22 18:26:18 +00:00
..
__init__.py [compat] Ensure submodules are imported correctly 2023-07-22 18:10:35 +05:30
_deprecated.py [cleanup] Deprecate more compat functions (#11439) 2024-11-17 00:24:11 +01:00
_legacy.py [cleanup] Deprecate more compat functions (#11439) 2024-11-17 00:24:11 +01:00
_utils.py Fix #9970: FFmpeg requires ext in filename for FFmpegMetadataPP 2025-03-22 18:26:18 +00:00
networking.py [networking] Add keep_header_casing extension (#11652) 2025-03-03 00:10:01 +01:00
progress.py [fd/fragment] Improve progress calculation (#8241) 2023-10-08 02:01:01 +02:00
traversal.py [utils] subs_list_to_dict: Add lang default parameter (#11508) 2024-11-15 23:25:52 +01:00