Set webpage_url_... from webpage_url and not input URL

Closes #2756
This commit is contained in:
pukkandan 2022-02-13 20:10:20 +05:30
parent b1cb0525ac
commit 57ebfca39b
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

View File

@ -1471,8 +1471,12 @@ class YoutubeDL(object):
self.add_extra_info(ie_result, {
'webpage_url': url,
'original_url': url,
'webpage_url_basename': url_basename(url),
'webpage_url_domain': get_domain(url),
})
webpage_url = ie_result.get('webpage_url')
if webpage_url:
self.add_extra_info(ie_result, {
'webpage_url_basename': url_basename(webpage_url),
'webpage_url_domain': get_domain(webpage_url),
})
if ie is not None:
self.add_extra_info(ie_result, {