aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor/ffmpeg.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-01-02 19:39:03 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-01-02 19:40:15 +0530
commit08e29b9f1f0b6e5fe1c1e87bf8169bfd7ac91d57 (patch)
treef766895910678aada78aa1e515b39a1580a7c8d3 /yt_dlp/postprocessor/ffmpeg.py
parent8e174ba7dee040d3fb4e14b21b39c3993dd79dd1 (diff)
downloadhypervideo-pre-08e29b9f1f0b6e5fe1c1e87bf8169bfd7ac91d57.tar.lz
hypervideo-pre-08e29b9f1f0b6e5fe1c1e87bf8169bfd7ac91d57.tar.xz
hypervideo-pre-08e29b9f1f0b6e5fe1c1e87bf8169bfd7ac91d57.zip
[cleanup] Misc
Closes #5576, closes #5887
Diffstat (limited to 'yt_dlp/postprocessor/ffmpeg.py')
-rw-r--r--yt_dlp/postprocessor/ffmpeg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py
index 069066e0c..9b70d749f 100644
--- a/yt_dlp/postprocessor/ffmpeg.py
+++ b/yt_dlp/postprocessor/ffmpeg.py
@@ -407,7 +407,7 @@ class FFmpegPostProcessor(PostProcessor):
"""
concat_file = f'{out_file}.concat'
self.write_debug(f'Writing concat spec to {concat_file}')
- with open(concat_file, 'wt', encoding='utf-8') as f:
+ with open(concat_file, 'w', encoding='utf-8') as f:
f.writelines(self._concat_spec(in_files, concat_opts))
out_flags = list(self.stream_copy_opts(ext=determine_ext(out_file)))
@@ -711,7 +711,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
@staticmethod
def _get_chapter_opts(chapters, metadata_filename):
- with open(metadata_filename, 'wt', encoding='utf-8') as f:
+ with open(metadata_filename, 'w', encoding='utf-8') as f:
def ffmpeg_escape(text):
return re.sub(r'([\\=;#\n])', r'\\\1', text)
@@ -981,7 +981,7 @@ class FFmpegSubtitlesConvertorPP(FFmpegPostProcessor):
with open(dfxp_file, 'rb') as f:
srt_data = dfxp2srt(f.read())
- with open(srt_file, 'wt', encoding='utf-8') as f:
+ with open(srt_file, 'w', encoding='utf-8') as f:
f.write(srt_data)
old_file = srt_file