1
0
Fork 0

[ie] Add browser impersonation support to more extractors (#16029)

Closes #7001, Closes #7444, Closes #16004
Authored by: bashonly
This commit is contained in:
bashonly 2026-02-21 13:24:05 -06:00 committed by GitHub
commit 1d1358d09f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

@ -51,7 +51,8 @@ class TruthIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._match_id(url)
status = self._download_json(f'https://truthsocial.com/api/v1/statuses/{video_id}', video_id)
status = self._download_json(
f'https://truthsocial.com/api/v1/statuses/{video_id}', video_id, impersonate=True)
uploader_id = strip_or_none(traverse_obj(status, ('account', 'username')))
return {
'id': video_id,