Some pep8 style fixes
This commit is contained in:
parent
944d65c762
commit
f89197d73e
5 changed files with 9 additions and 10 deletions
|
@ -331,7 +331,7 @@ class YoutubeDL(object):
|
|||
|
||||
def __exit__(self, *args):
|
||||
self.restore_console_title()
|
||||
|
||||
|
||||
if self.params.get('cookiefile') is not None:
|
||||
self.cookiejar.save()
|
||||
|
||||
|
@ -710,10 +710,10 @@ class YoutubeDL(object):
|
|||
|
||||
# TODO Central sorting goes here
|
||||
|
||||
if formats[0] is not info_dict:
|
||||
if formats[0] is not info_dict:
|
||||
# only set the 'formats' fields if the original info_dict list them
|
||||
# otherwise we end up with a circular reference, the first (and unique)
|
||||
# element in the 'formats' field in info_dict is info_dict itself,
|
||||
# element in the 'formats' field in info_dict is info_dict itself,
|
||||
# wich can't be exported to json
|
||||
info_dict['formats'] = formats
|
||||
if self.params.get('listformats', None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue