mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 11:57:15 +08:00
adding a backup for missing timestamp for paid partnership
This commit is contained in:
parent
d6ae092fc9
commit
fcedf5eed1
@ -454,12 +454,13 @@ class FacebookIE(InfoExtractor):
|
|||||||
self._search_regex(r'ownerName"\s*:\s*"([^"]+)"', webpage, 'uploader', default=None) or \
|
self._search_regex(r'ownerName"\s*:\s*"([^"]+)"', webpage, 'uploader', default=None) or \
|
||||||
self._og_search_title(webpage, default=None)
|
self._og_search_title(webpage, default=None)
|
||||||
|
|
||||||
|
timestamp = None
|
||||||
if webpage.find('Paid Partnership'):
|
if webpage.find('Paid Partnership'):
|
||||||
timestamp = self._search_regex(
|
timestamp = self._search_regex(
|
||||||
r'datePublished":"(.+?)"', webpage,
|
r'datePublished":"(.+?)"', webpage,
|
||||||
'timestamp', default=None)
|
'timestamp', default=None)
|
||||||
timestamp = parse_iso8601(timestamp)
|
timestamp = parse_iso8601(timestamp)
|
||||||
else:
|
if timestamp is None:
|
||||||
timestamp = int_or_none(
|
timestamp = int_or_none(
|
||||||
self._search_regex(r'data-utime=\\\"(\d+)\\\"', tahoe_data.secondary,'timestamp', default=None)
|
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)
|
or self._search_regex(r'<abbr[^>]+data-utime=["\'](\d+)', webpage, 'timestamp', default=None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user