mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 09:12:40 +01:00
[cleanup] Fix linter in 96fccc101f
This commit is contained in:
parent
96fccc101f
commit
a46a815b05
@ -2699,7 +2699,7 @@ def correct_ext(filename):
|
|||||||
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 @@ def real_download(self, filename, info_dict):
|
|||||||
'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 @@ def real_download(self, filename, info_dict):
|
|||||||
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…
Reference in New Issue
Block a user