From c1589ea3fe3edaeb643118f7b8d425da97597ea5 Mon Sep 17 00:00:00 2001 From: "sebastian.kondraciuk" Date: Mon, 27 May 2024 13:52:03 +0200 Subject: [PATCH] remove or None --- yt_dlp/extractor/facebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.py index 2eb74e797..fb3e36954 100644 --- a/yt_dlp/extractor/facebook.py +++ b/yt_dlp/extractor/facebook.py @@ -541,7 +541,7 @@ def extract_metadata(webpage): # in https://www.facebook.com/yaroslav.korpan/videos/1417995061575415/ if thumbnail and not re.search(r'\.(?:jpg|png)', thumbnail): 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)) info_dict = { 'description': description,