Skip to content

Commit

Permalink
[facebook] fallback to twitter:image meta for thumbnail extraction(cl…
Browse files Browse the repository at this point in the history
…oses #21224)
  • Loading branch information
remitamine authored and Lamieur committed Aug 3, 2019
1 parent 21c67d0 commit 49b094f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 49b094f

Please sign in to comment.