1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-11 06:07:15 +08:00

read uploader id

This commit is contained in:
Avi Peretz 2019-01-14 16:05:59 +02:00
parent e921ad845d
commit 5916a2fc38

View File

@ -449,6 +449,12 @@ class FacebookIE(InfoExtractor):
r'data-utime=\\\"(\d+)\\\"', tahoe_secondary_data, r'data-utime=\\\"(\d+)\\\"', tahoe_secondary_data,
'timestamp', default=None)) 'timestamp', default=None))
uploader_id = self._search_regex(
r'ownerid:"([\d]+)', webpage,
'uploader_id', default=None) or self._search_regex(
r'\"ownerid\":"(\d+)"', tahoe_secondary_data,
'uploader_id', default=None)
thumbnail = self._og_search_thumbnail(webpage) thumbnail = self._og_search_thumbnail(webpage)
view_count = parse_count(self._search_regex( view_count = parse_count(self._search_regex(
@ -463,6 +469,7 @@ class FacebookIE(InfoExtractor):
'timestamp': timestamp, 'timestamp': timestamp,
'thumbnail': thumbnail, 'thumbnail': thumbnail,
'view_count': view_count, 'view_count': view_count,
'uploader_id': uploader_id
} }
return webpage, info_dict return webpage, info_dict