diff options
author | Remita Amine <[email protected]> | 2019-07-12 22:02:06 +0100 |
---|---|---|
committer | Remita Amine <[email protected]> | 2019-07-12 22:02:06 +0100 |
commit | 82f68e4a0113f00144b55c5d2a1951793ac78818 (patch) | |
tree | 3a22b23b5aa0084f950987ffdbeb0dafc8e8680a /youtube_dl/extractor/facebook.py | |
parent | d4ece5d359bfe5c6b87e0ef19f2b351e408e510c (diff) | |
download | youtube-dl-82f68e4a0113f00144b55c5d2a1951793ac78818.tar.gz youtube-dl-82f68e4a0113f00144b55c5d2a1951793ac78818.zip |
[facebook] fallback to twitter:image meta for thumbnail extraction(closes #21224)
Diffstat (limited to 'youtube_dl/extractor/facebook.py')
-rw-r--r-- | youtube_dl/extractor/facebook.py | 2 |
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', |