[ie/afreecatv] Support browser impersonation (#10174)

Closes #8187
Authored by: hui1601
This commit is contained in:
Dong Heon Hee 2024-07-01 06:55:21 +09:00 committed by GitHub
parent 2a4f2e82db
commit e8352ad659
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -189,7 +189,7 @@ def _real_extract(self, url):
headers={'Referer': url}, data=urlencode_postdata({
'nTitleNo': video_id,
'nApiLevel': 10,
}))['data']
}), impersonate=True)['data']
error_code = traverse_obj(data, ('code', {int}))
if error_code == -6221: