From: Remita Amine Date: Fri, 12 Jul 2019 21:02:06 +0000 (+0100) Subject: [facebook] fallback to twitter:image meta for thumbnail extraction(closes #21224) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=82f68e4a0113f00144b55c5d2a1951793ac78818;p=youtube-dl [facebook] fallback to twitter:image meta for thumbnail extraction(closes #21224) --- diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 789dd79d5..a3dcdca3e 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -428,7 +428,7 @@ class FacebookIE(InfoExtractor): timestamp = int_or_none(self._search_regex( r']+data-utime=["\'](\d+)', webpage, 'timestamp', default=None)) - thumbnail = self._og_search_thumbnail(webpage) + thumbnail = self._html_search_meta(['og:image', 'twitter:image'], webpage) view_count = parse_count(self._search_regex( r'\bviewCount\s*:\s*["\']([\d,.]+)', webpage, 'view count',