]> jfr.im git - yt-dlp.git/commitdiff
[cleanup] Fix linter in 96fccc101f8f579ebd67da176e029803d82634c7
authorpukkandan <redacted>
Sun, 1 Aug 2021 07:22:09 +0000 (12:52 +0530)
committerpukkandan <redacted>
Sun, 1 Aug 2021 07:22:09 +0000 (12:52 +0530)
yt_dlp/YoutubeDL.py
yt_dlp/downloader/dash.py
yt_dlp/downloader/hls.py

index 11add73ade0af662e3d42f3c7a51e5e0e828cbf8..71b8b2f3dcf889bebbdf96881880e89d48c4244c 100644 (file)
@@ -2699,7 +2699,7 @@ def correct_ext(filename):
                     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
index 881ef3a1d3d6380c398689c1885d3f8c285dd8a9..734eab3ef21fd23febd5ec2714077773eb784f0d 100644 (file)
@@ -23,7 +23,7 @@ def real_download(self, filename, info_dict):
             '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,
index 6f9dbeedbfa3a9457c796f0876912edc6807139c..9cbd5a584f3e12848fba074c9d52220e2d0258fd 100644 (file)
@@ -87,7 +87,7 @@ def real_download(self, filename, info_dict):
             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: