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:
parent
79cd8b3d8a
commit
f2a7d1dd47
@ -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 """
|
||||
|
Loading…
Reference in New Issue
Block a user