1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-25 06:52:54 +08:00

[YoutubeDL] Fix wrong hanging identation

This commit is contained in:
stepshal 2016-06-14 00:31:28 +07:00
parent 79cd8b3d8a
commit f2a7d1dd47

View File

@ -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 """