aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-07-12 22:02:06 +0100
committerRemita Amine <remitamine@gmail.com>2019-07-12 22:02:06 +0100
commit82f68e4a0113f00144b55c5d2a1951793ac78818 (patch)
tree3a22b23b5aa0084f950987ffdbeb0dafc8e8680a
parentd4ece5d359bfe5c6b87e0ef19f2b351e408e510c (diff)
[facebook] fallback to twitter:image meta for thumbnail extraction(closes #21224)
-rw-r--r--youtube_dl/extractor/facebook.py2
1 files changed, 1 insertions, 1 deletions
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'<abbr[^>]+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',