1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-27 17:08:32 +00:00
yt-dlp/yt_dlp/postprocessor
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 [core] Load plugins on demand (#11305) 2025-02-23 11:00:46 +13:00
common.py [core] Support emitting ConEmu progress codes (#10649) 2025-02-20 20:33:31 +01:00
embedthumbnail.py [cleanup] Deprecate more compat functions (#11439) 2024-11-17 00:24:11 +01:00
exec.py [cleanup] Add more ruff rules (#10149) 2024-06-12 01:09:58 +02:00
ffmpeg.py Fix #9970: FFmpeg requires ext in filename for FFmpegMetadataPP 2025-03-22 18:26:18 +00:00
metadataparser.py [cleanup] Misc 2023-02-17 17:52:22 +05:30
modify_chapters.py [cleanup] Add more ruff rules (#10149) 2024-06-12 01:09:58 +02:00
movefilesafterdownload.py [cleanup] Deprecate more compat functions (#11439) 2024-11-17 00:24:11 +01:00
sponskrub.py [cleanup] Deprecate more compat functions (#11439) 2024-11-17 00:24:11 +01:00
sponsorblock.py [cleanup] Misc (#10807) 2024-09-27 22:46:22 +00:00
xattrpp.py [cleanup] Deprecate more compat functions (#11439) 2024-11-17 00:24:11 +01:00