Merge pull request #127 from aviperes/facebook-publish-date

prioritize tahoe_data.secondary over webpage when extracting timestamp
This commit is contained in:
hashark 2019-10-22 13:10:06 +03:00 committed by GitHub
commit dab5934117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -456,9 +456,9 @@ class FacebookIE(InfoExtractor):
timestamp = int_or_none(self._search_regex(
r'<abbr[^>]+data-utime=["\'](\d+)', webpage,
'timestamp', default=None) or self._search_regex(
r'data-utime=\\\"(\d+)\\\"', tahoe_data.secondary,
'timestamp', default=None) or self._search_regex(
r'<abbr[^>]+data-utime=["\'](\d+)', webpage,
'timestamp', default=None))
uploader_id = self._search_regex(