[cleanup] Fix linter in 96fccc101f

pull/606/head
pukkandan 3 years ago
parent 96fccc101f
commit a46a815b05
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -2699,7 +2699,7 @@ class YoutubeDL(object):
if dl_filename is not None: if dl_filename is not None:
pass pass
elif (directly_mergable and get_suitable_downloader( 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) info_dict['url'] = '\n'.join(f['url'] for f in requested_formats)
success, real_download = self.dl(temp_filename, info_dict) success, real_download = self.dl(temp_filename, info_dict)
info_dict['__real_download'] = real_download info_dict['__real_download'] = real_download

@ -23,7 +23,7 @@ class DashSegmentsFD(FragmentFD):
'test', False) else info_dict['fragments'] 'test', False) else info_dict['fragments']
real_downloader = get_suitable_downloader( 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 = { ctx = {
'filename': filename, 'filename': filename,

@ -87,7 +87,7 @@ class HlsFD(FragmentFD):
real_downloader = None # Packing the fragments is not currently supported for external downloader real_downloader = None # Packing the fragments is not currently supported for external downloader
else: else:
real_downloader = get_suitable_downloader( 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): if real_downloader and not real_downloader.supports_manifest(s):
real_downloader = None real_downloader = None
if real_downloader: if real_downloader:

Loading…
Cancel
Save