mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-02 13:20:22 +00:00
[facebook] Improve uploader extraction (closes #20250)
This commit is contained in:
parent
ee0ba927aa
commit
a551768acf
@ -424,7 +424,7 @@ def extract_from_jsmods_instances(js_data):
|
|||||||
uploader = clean_html(get_element_by_id(
|
uploader = clean_html(get_element_by_id(
|
||||||
'fbPhotoPageAuthorName', webpage)) or self._search_regex(
|
'fbPhotoPageAuthorName', webpage)) or self._search_regex(
|
||||||
r'ownerName\s*:\s*"([^"]+)"', webpage, 'uploader',
|
r'ownerName\s*:\s*"([^"]+)"', webpage, 'uploader',
|
||||||
fatal=False) or self._og_search_title(webpage, fatal=False)
|
default=None) or self._og_search_title(webpage, fatal=False)
|
||||||
timestamp = int_or_none(self._search_regex(
|
timestamp = int_or_none(self._search_regex(
|
||||||
r'<abbr[^>]+data-utime=["\'](\d+)', webpage,
|
r'<abbr[^>]+data-utime=["\'](\d+)', webpage,
|
||||||
'timestamp', default=None))
|
'timestamp', default=None))
|
||||||
|
Loading…
Reference in New Issue
Block a user