Skip to content

A feature-rich command-line audio/video downloader

[cleanup] Fix linter in 96fccc101f8f579ebd67da176e029803d82634c7

pukkandana46a815b0552
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 11add73ade..71b8b2f3dc 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -2699,7 +2699,7 @@ class YoutubeDL(object):
if dl_filename is not None:
pass
elif (directly_mergable and get_suitable_downloader(
- info_dict, self.params, to_stdout=(temp_filename== '-')) == FFmpegFD):
+ info_dict, self.params, to_stdout=(temp_filename == '-')) == FFmpegFD):
info_dict['url'] = '\n'.join(f['url'] for f in requested_formats)
success, real_download = self.dl(temp_filename, info_dict)
info_dict['__real_download'] = real_download
diff --git a/yt_dlp/downloader/dash.py b/yt_dlp/downloader/dash.py
index 881ef3a1d3..734eab3ef2 100644
--- a/yt_dlp/downloader/dash.py
+++ b/yt_dlp/downloader/dash.py
@@ -23,7 +23,7 @@ class DashSegmentsFD(FragmentFD):
'test', False) else info_dict['fragments']
real_downloader = get_suitable_downloader(
- info_dict, self.params, None, protocol='dash_frag_urls', to_stdout=(filename== '-'))
+ info_dict, self.params, None, protocol='dash_frag_urls', to_stdout=(filename == '-'))
ctx = {
'filename': filename,
diff --git a/yt_dlp/downloader/hls.py b/yt_dlp/downloader/hls.py
index 6f9dbeedbf..9cbd5a584f 100644
--- a/yt_dlp/downloader/hls.py
+++ b/yt_dlp/downloader/hls.py
@@ -87,7 +87,7 @@ class HlsFD(FragmentFD):
real_downloader = None # Packing the fragments is not currently supported for external downloader
else:
real_downloader = get_suitable_downloader(
- info_dict, self.params, None, protocol='m3u8_frag_urls', to_stdout=(filename== '-'))
+ info_dict, self.params, None, protocol='m3u8_frag_urls', to_stdout=(filename == '-'))
if real_downloader and not real_downloader.supports_manifest(s):
real_downloader = None
if real_downloader: