mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-05 15:32:52 +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):
|
def download_with_info_file(self, info_filename):
|
||||||
with contextlib.closing(fileinput.FileInput(
|
with contextlib.closing(fileinput.FileInput(
|
||||||
[info_filename], mode='r',
|
[info_filename], mode='r',
|
||||||
openhook=fileinput.hook_encoded('utf-8'))) as f:
|
openhook=fileinput.hook_encoded('utf-8'))) as f:
|
||||||
# FileInput doesn't have a read method, we can't call json.load
|
# FileInput doesn't have a read method, we can't call json.load
|
||||||
info = self.filter_requested_info(json.loads('\n'.join(f)))
|
info = self.filter_requested_info(json.loads('\n'.join(f)))
|
||||||
try:
|
try:
|
||||||
@ -1941,7 +1941,7 @@ class YoutubeDL(object):
|
|||||||
self.to_screen(render_table(
|
self.to_screen(render_table(
|
||||||
['Language', 'formats'],
|
['Language', 'formats'],
|
||||||
[[lang, ', '.join(f['ext'] for f in reversed(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):
|
def urlopen(self, req):
|
||||||
""" Start an HTTP download """
|
""" Start an HTTP download """
|
||||||
|
Loading…
Reference in New Issue
Block a user