mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-07-03 10:39:12 +02:00
remove or None
This commit is contained in:
parent
25f44777c0
commit
c1589ea3fe
|
@ -541,7 +541,7 @@ def extract_metadata(webpage):
|
||||||
# in https://www.facebook.com/yaroslav.korpan/videos/1417995061575415/
|
# in https://www.facebook.com/yaroslav.korpan/videos/1417995061575415/
|
||||||
if thumbnail and not re.search(r'\.(?:jpg|png)', thumbnail):
|
if thumbnail and not re.search(r'\.(?:jpg|png)', thumbnail):
|
||||||
thumbnail = None
|
thumbnail = None
|
||||||
profile_url = get_first(post, ('attachments', ..., 'media', 'creation_story', 'comet_sections', 'actor_photo', 'story', 'actors', ..., 'profile_url')) or None
|
profile_url = get_first(post, ('attachments', ..., 'media', 'creation_story', 'comet_sections', 'actor_photo', 'story', 'actors', ..., 'profile_url'))
|
||||||
follower_count = extract_follower_count(self._download_webpage(profile_url, None))
|
follower_count = extract_follower_count(self._download_webpage(profile_url, None))
|
||||||
info_dict = {
|
info_dict = {
|
||||||
'description': description,
|
'description': description,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user