[archiveorg] Some thumbnail URLs are relative

This commit is contained in:
Andrew Udvare 2018-06-23 00:37:59 -04:00
parent fc5d367564
commit 8d245cf42f
No known key found for this signature in database
GPG Key ID: 1AFD9AFC120C26DD

View File

@ -62,4 +62,8 @@ class ArchiveOrgIE(InfoExtractor):
'uploader': get_optional(metadata, 'creator'),
'upload_date': unified_strdate(get_optional(metadata, 'date')),
})
if info.get('thumbnail', '').startswith('/'):
info.update({
'thumbnail': 'https://archive.org%s' % info.get('thumbnail')
})
return info