[facebook] fallback to twitter:image meta for thumbnail extraction(closes #21224)

This commit is contained in:
Remita Amine 2019-07-12 22:02:06 +01:00
parent d4ece5d359
commit 82f68e4a01

View file

@ -428,7 +428,7 @@ def extract_from_jsmods_instances(js_data):
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',