fix facebook thumbnail (#340)

Co-authored-by: bhodaya <bhodaya@videocites.com>
This commit is contained in:
hodayabu 2020-06-17 17:53:43 +03:00 committed by GitHub
parent ef1a4e8229
commit ed06b54607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -791,7 +791,8 @@ class FacebookIE(InfoExtractor):
def _resolve_thumbnail(self, webpage, tahoe_data):
thumbnail = self._html_search_meta(['og:image', 'twitter:image'], webpage)
if not thumbnail:
thumbnail = self._search_regex(r'"subtitles_src":"(.+?")', tahoe_data.primary, 'thumbnail', fatal=False)
thumbnail = self._search_regex(r'"thumbSrc":"(.+?)"', tahoe_data.secondary, 'thumbnail', fatal=False)
thumbnail = str(thumbnail).replace('\\', "")
return thumbnail
def _valid_video_title(self, video_title):