From f2a7d1dd472ef6b2e6d28a9c6383c917489a0006 Mon Sep 17 00:00:00 2001 From: stepshal Date: Tue, 14 Jun 2016 00:31:28 +0700 Subject: [PATCH] [YoutubeDL] Fix wrong hanging identation --- youtube_dl/YoutubeDL.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 5036289b0..78561a0b2 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1751,8 +1751,8 @@ class YoutubeDL(object): def download_with_info_file(self, info_filename): with contextlib.closing(fileinput.FileInput( - [info_filename], mode='r', - openhook=fileinput.hook_encoded('utf-8'))) as f: + [info_filename], mode='r', + openhook=fileinput.hook_encoded('utf-8'))) as f: # FileInput doesn't have a read method, we can't call json.load info = self.filter_requested_info(json.loads('\n'.join(f))) try: @@ -1941,7 +1941,7 @@ class YoutubeDL(object): self.to_screen(render_table( ['Language', 'formats'], [[lang, ', '.join(f['ext'] for f in reversed(formats))] - for lang, formats in subtitles.items()])) + for lang, formats in subtitles.items()])) def urlopen(self, req): """ Start an HTTP download """