From 5dadd9c357f252689cd0d8fe2454776ed3474d22 Mon Sep 17 00:00:00 2001 From: Avi Peretz Date: Tue, 10 Mar 2020 23:52:01 +0200 Subject: [PATCH] add page id. --- youtube_dl/extractor/facebook.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 8df46ff54..996711ab4 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -466,7 +466,7 @@ class FacebookIE(InfoExtractor): _lowercase_escape(self._search_regex( r'\"ownerName\":"(.+?)"', tahoe_data.secondary, 'uploader_id', fatal=False)) or self._og_search_title(webpage, default=None) - + timestamp = int_or_none(self._search_regex( r'data-utime=\\\"(\d+)\\\"', tahoe_data.secondary, 'timestamp', default=None) or self._search_regex( @@ -477,7 +477,8 @@ class FacebookIE(InfoExtractor): r'ownerid:"([\d]+)', webpage, 'uploader_id', default=None) or self._search_regex( r'[\'\"]ownerid[\'\"]\s*:\s*[\'\"](\d+)[\'\"]', tahoe_data.secondary, - 'uploader_id', fatal=False) + 'uploader_id', default=None) or \ + self._search_regex(r'\\\"page_id\\\"\s*:\s*\\\"(\d+)\\\"', tahoe_data.secondary, 'uploader_id', fatal=False) thumbnail = self._html_search_meta(['og:image', 'twitter:image'], webpage)