fix title, subscription, comments, live
This commit is contained in:
parent
7924604f0d
commit
02aaba1c06
@ -507,9 +507,10 @@ class FacebookIE(InfoExtractor):
|
|||||||
|
|
||||||
def get_from_new_ui(self, webpage, tahoe_data, url):
|
def get_from_new_ui(self, webpage, tahoe_data, url):
|
||||||
|
|
||||||
video_title = self._search_regex(r'"headline":"(.+?")', webpage, 'title')
|
video_title = self._search_regex(r'"headline":"(.+?")', webpage, 'title', fatal=False)
|
||||||
comments_count = parse_count(self._search_regex(r'"commentCount":(.+?,)', webpage, 'comments_count'))
|
if not video_title:
|
||||||
subtitles = self._search_regex(r'"about":"(.+?")', webpage, 'subtitles')
|
video_title = self._search_regex(r'"pageTitle">(.+?)<', webpage, 'title')
|
||||||
|
comments_count = parse_count(self._search_regex(r'"commentCount":(.+?,)', webpage, 'comments_count', fatal=False))
|
||||||
likes = parse_count(self._extract_likes(webpage, tahoe_data))
|
likes = parse_count(self._extract_likes(webpage, tahoe_data))
|
||||||
|
|
||||||
timestamp = self._search_regex(r'"datePublished":"(.+?)"', webpage, 'timestamp')
|
timestamp = self._search_regex(r'"datePublished":"(.+?)"', webpage, 'timestamp')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user