Minor formatting fix
This commit is contained in:
parent
52828f4ca5
commit
5bd55c8572
@ -48,7 +48,7 @@ class ArchiveOrgIE(InfoExtractor):
|
||||
|
||||
def get_optional(metadata, field):
|
||||
return metadata.get(field, [None])[0]
|
||||
|
||||
|
||||
def convert_relative_to_absolute_thumbnail(metadata):
|
||||
if not metadata['thumbnail'].startswith('http'):
|
||||
metadata.update({'thumbnail': ''.join(('http://archive.org', metadata.get('thumbnail')))})
|
||||
@ -70,4 +70,4 @@ class ArchiveOrgIE(InfoExtractor):
|
||||
else:
|
||||
for entry in info['entries']:
|
||||
convert_relative_to_absolute_thumbnail(entry)
|
||||
return info
|
||||
return info
|
||||
|
Loading…
x
Reference in New Issue
Block a user